aboutsummaryrefslogtreecommitdiff
path: root/math/math.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-11-02 22:11:21 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-11-02 22:11:21 +0000
commit0155d5b26e32b2012d9f1842c3b06324746d3087 (patch)
tree8411d5695acda18c48345da2b09578f2a7b1f7a7 /math/math.h
parentb5dcacb4502be39d30efd2f928b9a30c91eeb0d3 (diff)
downloadglibc-0155d5b26e32b2012d9f1842c3b06324746d3087.zip
glibc-0155d5b26e32b2012d9f1842c3b06324746d3087.tar.gz
glibc-0155d5b26e32b2012d9f1842c3b06324746d3087.tar.bz2
Make math.h FP_* macros usable in #if (bug 3439).
Diffstat (limited to 'math/math.h')
-rw-r--r--math/math.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/math/math.h b/math/math.h
index bcdd5c9..0b4bc0c 100644
--- a/math/math.h
+++ b/math/math.h
@@ -189,16 +189,21 @@ extern int signgam;
/* All floating-point numbers can be put in one of these categories. */
enum
{
- FP_NAN,
-# define FP_NAN FP_NAN
- FP_INFINITE,
-# define FP_INFINITE FP_INFINITE
- FP_ZERO,
-# define FP_ZERO FP_ZERO
- FP_SUBNORMAL,
-# define FP_SUBNORMAL FP_SUBNORMAL
- FP_NORMAL
-# define FP_NORMAL FP_NORMAL
+ FP_NAN =
+# define FP_NAN 0
+ FP_NAN,
+ FP_INFINITE =
+# define FP_INFINITE 1
+ FP_INFINITE,
+ FP_ZERO =
+# define FP_ZERO 2
+ FP_ZERO,
+ FP_SUBNORMAL =
+# define FP_SUBNORMAL 3
+ FP_SUBNORMAL,
+ FP_NORMAL =
+# define FP_NORMAL 4
+ FP_NORMAL
};
/* Return number of classification appropriate for X. */