about summary refs log tree commit diff
path: root/ports/sysdeps/ia64
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 /ports/sysdeps/ia64
parent0244426b930b006b128ea0c874b1301e9528ad5f (diff)
downloadglibc-fbeafedeea37e0af1984a6511018d159f5ceed6a.tar.gz
glibc-fbeafedeea37e0af1984a6511018d159f5ceed6a.tar.xz
glibc-fbeafedeea37e0af1984a6511018d159f5ceed6a.zip
Make fenv.h FE_* macros usable in #if (bug 3439).
Diffstat (limited to 'ports/sysdeps/ia64')
-rw-r--r--ports/sysdeps/ia64/bits/fenv.h54
1 files changed, 32 insertions, 22 deletions
diff --git a/ports/sysdeps/ia64/bits/fenv.h b/ports/sysdeps/ia64/bits/fenv.h
index 342605d8ce..7b5a75315f 100644
--- a/ports/sysdeps/ia64/bits/fenv.h
+++ b/ports/sysdeps/ia64/bits/fenv.h
@@ -25,43 +25,53 @@
 
 enum
   {
-    FE_INEXACT =	1UL << 5,
-#define FE_INEXACT	FE_INEXACT
+    FE_INEXACT =
+#define FE_INEXACT	(1 << 5)
+      FE_INEXACT,
 
-    FE_UNDERFLOW =	1UL << 4,
-#define FE_UNDERFLOW	FE_UNDERFLOW
+    FE_UNDERFLOW =
+#define FE_UNDERFLOW	(1 << 4)
+      FE_UNDERFLOW,
 
-    FE_OVERFLOW =	1UL << 3,
-#define FE_OVERFLOW	FE_OVERFLOW
+    FE_OVERFLOW =
+#define FE_OVERFLOW	(1 << 3)
+      FE_OVERFLOW,
 
-    FE_DIVBYZERO =	1UL << 2,
-#define FE_DIVBYZERO	FE_DIVBYZERO
+    FE_DIVBYZERO =
+#define FE_DIVBYZERO	(1 << 2)
+      FE_DIVBYZERO,
 
-    FE_UNNORMAL =	1UL << 1,
-#define FE_UNNORMAL	FE_UNNORMAL
+    FE_UNNORMAL =
+#define FE_UNNORMAL	(1 << 1)
+      FE_UNNORMAL,
 
-    FE_INVALID =	1UL << 0,
-#define FE_INVALID	FE_INVALID
+    FE_INVALID =
+#define FE_INVALID	(1 << 0)
+      FE_INVALID,
 
     FE_ALL_EXCEPT =
-	(FE_INEXACT | FE_UNDERFLOW | FE_OVERFLOW | FE_DIVBYZERO | FE_UNNORMAL | FE_INVALID)
-#define FE_ALL_EXCEPT	FE_ALL_EXCEPT
+#define FE_ALL_EXCEPT	(FE_INEXACT | FE_UNDERFLOW | FE_OVERFLOW | FE_DIVBYZERO | FE_UNNORMAL | FE_INVALID)
+      FE_ALL_EXCEPT
   };
 
 
 enum
   {
-    FE_TOWARDZERO =	3,
-#define FE_TOWARDZERO	FE_TOWARDZERO
+    FE_TOWARDZERO =
+#define FE_TOWARDZERO	3
+      FE_TOWARDZERO,
 
-    FE_UPWARD =		2,
-#define FE_UPWARD	FE_UPWARD
+    FE_UPWARD =
+#define FE_UPWARD	2
+      FE_UPWARD,
 
-    FE_DOWNWARD = 	1,
-#define FE_DOWNWARD	FE_DOWNWARD
+    FE_DOWNWARD =
+#define FE_DOWNWARD	1
+      FE_DOWNWARD,
 
-    FE_TONEAREST =	0,
-#define FE_TONEAREST	FE_TONEAREST
+    FE_TONEAREST =
+#define FE_TONEAREST	0
+      FE_TONEAREST,
   };