summaryrefslogtreecommitdiffstats
path: root/lib/msun
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2013-07-11 19:34:16 +0000
committertheraven <theraven@FreeBSD.org>2013-07-11 19:34:16 +0000
commitb6487bb3f03709742a83a1a25e7f0960ffc04729 (patch)
tree6f951f16ad08d4e525aa0f06ea59705c56eb9f3a /lib/msun
parent06a7597ad3bc77e7e35c19c68cff60c8c199b8b6 (diff)
downloadFreeBSD-src-b6487bb3f03709742a83a1a25e7f0960ffc04729.zip
FreeBSD-src-b6487bb3f03709742a83a1a25e7f0960ffc04729.tar.gz
Fix some typoes in math.h cleanup.
Diffstat (limited to 'lib/msun')
-rw-r--r--lib/msun/src/math.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h
index c41bdcd..766a36c 100644
--- a/lib/msun/src/math.h
+++ b/lib/msun/src/math.h
@@ -81,12 +81,12 @@ extern const union __nan_un {
#define FP_SUBNORMAL 0x08
#define FP_ZERO 0x10
-#if __STDC_VERSION__ >= 201112L
+#if __STDC_VERSION__ >= 201112L && defined(__clang__)
#define __fp_type_select(x, f, d, ld) _Generic((x), \
float: f(x), \
double: d(x), \
long double: ld(x))
-#elif __GNUC_PREREQ__(5, 1)
+#elif __GNUC_PREREQ__(3, 1)
#define __fp_type_select(x, f, d, ld) __builtin_choose_expr( \
__builtin_types_compatible_p(__typeof(x), long double), ld(x), \
__builtin_choose_expr( \
@@ -101,7 +101,7 @@ extern const union __nan_un {
#endif
#define fpclassify(x) \
- __fp_type_select(x, __fpclassifyf, __fpclassifyd, __fpclassifyd)
+ __fp_type_select(x, __fpclassifyf, __fpclassifyd, __fpclassifyl)
#define isfinite(x) __fp_type_select(x, __isfinitef, __isfinite, __isfinitel)
#define isinf(x) __fp_type_select(x, __isinff, __isinf, __isinfl)
#define isnan(x) \
OpenPOWER on IntegriCloud