summaryrefslogtreecommitdiff
path: root/sysdeps/sh/sh4/fpu/bits
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-11-03 17:07:56 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-11-03 17:07:56 +0000
commitfbeafedeea37e0af1984a6511018d159f5ceed6a (patch)
tree3bca3c62f6c2004bf50708d4ced2500971a342b7 /sysdeps/sh/sh4/fpu/bits
parent0244426b930b006b128ea0c874b1301e9528ad5f (diff)
downloadglibc-fbeafedeea37e0af1984a6511018d159f5ceed6a.tar.gz
Make fenv.h FE_* macros usable in #if (bug 3439).
Diffstat (limited to 'sysdeps/sh/sh4/fpu/bits')
-rw-r--r--sysdeps/sh/sh4/fpu/bits/fenv.h35
1 files changed, 21 insertions, 14 deletions
diff --git a/sysdeps/sh/sh4/fpu/bits/fenv.h b/sysdeps/sh/sh4/fpu/bits/fenv.h
index 93159499d5..e51a057cb5 100644
--- a/sysdeps/sh/sh4/fpu/bits/fenv.h
+++ b/sysdeps/sh/sh4/fpu/bits/fenv.h
@@ -24,16 +24,21 @@
of the appropriate bits in the FPU control word. */
enum
{
- FE_INEXACT = 0x04,
-#define FE_INEXACT FE_INEXACT
- FE_UNDERFLOW = 0x08,
-#define FE_UNDERFLOW FE_UNDERFLOW
- FE_OVERFLOW = 0x10,
-#define FE_OVERFLOW FE_OVERFLOW
- FE_DIVBYZERO = 0x20,
-#define FE_DIVBYZERO FE_DIVBYZERO
- FE_INVALID = 0x40,
-#define FE_INVALID FE_INVALID
+ FE_INEXACT =
+#define FE_INEXACT 0x04
+ FE_INEXACT,
+ FE_UNDERFLOW =
+#define FE_UNDERFLOW 0x08
+ FE_UNDERFLOW,
+ FE_OVERFLOW =
+#define FE_OVERFLOW 0x10
+ FE_OVERFLOW,
+ FE_DIVBYZERO =
+#define FE_DIVBYZERO 0x20
+ FE_DIVBYZERO,
+ FE_INVALID =
+#define FE_INVALID 0x40
+ FE_INVALID,
};
#define FE_ALL_EXCEPT \
@@ -46,10 +51,12 @@ enum
{
__FE_UNDEFINED = -1,
- FE_TONEAREST = 0x0,
-#define FE_TONEAREST FE_TONEAREST
- FE_TOWARDZERO = 0x1,
-#define FE_TOWARDZERO FE_TOWARDZERO
+ FE_TONEAREST =
+#define FE_TONEAREST 0x0
+ FE_TONEAREST,
+ FE_TOWARDZERO =
+#define FE_TOWARDZERO 0x1
+ FE_TOWARDZERO,
};