summaryrefslogtreecommitdiff
path: root/fixincludes/tests
diff options
context:
space:
mode:
Diffstat (limited to 'fixincludes/tests')
-rw-r--r--fixincludes/tests/base/iso/math_c99.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/fixincludes/tests/base/iso/math_c99.h b/fixincludes/tests/base/iso/math_c99.h
index e3b27994422..4d9b6311f6d 100644
--- a/fixincludes/tests/base/iso/math_c99.h
+++ b/fixincludes/tests/base/iso/math_c99.h
@@ -38,16 +38,7 @@
#ident "@(#)math_c99.h 1.9 04/11/01 SMI"
#undef fpclassify
#define fpclassify(x) \
- __extension__ ({ const __typeof(x) __x_fp = (x); \
- isnan(__x_fp) \
- ? FP_NAN \
- : isinf(__x_fp) \
- ? FP_INFINITE \
- : isnormal(__x_fp) \
- ? FP_NORMAL \
- : __x_fp == 0.0 \
- ? FP_ZERO \
- : FP_SUBNORMAL; })
+ __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))
#endif /* SOLARIS_MATH_4_CHECK */