diff options
author | theraven <theraven@FreeBSD.org> | 2013-07-13 13:04:38 +0000 |
---|---|---|
committer | theraven <theraven@FreeBSD.org> | 2013-07-13 13:04:38 +0000 |
commit | 4b658e6ec59bdcaf0b935ad4ad6403c6211eff74 (patch) | |
tree | 9e9fd5ce3f180ccc57ce74ed1618d02e0b9456ac /lib/msun/src | |
parent | f60d437435df7f4222b46c78048510f29e6ff833 (diff) | |
download | FreeBSD-src-4b658e6ec59bdcaf0b935ad4ad6403c6211eff74.zip FreeBSD-src-4b658e6ec59bdcaf0b935ad4ad6403c6211eff74.tar.gz |
Cleaner support for type qualifiers.
Submitted by: Pasi Parviainen
Diffstat (limited to 'lib/msun/src')
-rw-r--r-- | lib/msun/src/math.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index abfdddb..458f441 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -83,19 +83,10 @@ extern const union __nan_un { #if (__STDC_VERSION__ >= 201112L && defined(__clang__)) || \ __has_extension(c_generic_selections) -#define __fp_type_select(x, f, d, ld) _Generic((x), \ +#define __fp_type_select(x, f, d, ld) _Generic((0,(x)), \ float: f(x), \ double: d(x), \ - long double: ld(x), \ - volatile float: f(x), \ - volatile double: d(x), \ - volatile long double: ld(x), \ - volatile const float: f(x), \ - volatile const double: d(x), \ - volatile const long double: ld(x), \ - const float: f(x), \ - const double: d(x), \ - const long double: ld(x)) + long double: ld(x)) #elif __GNUC_PREREQ__(3, 1) && !defined(__cplusplus) #define __fp_type_select(x, f, d, ld) __builtin_choose_expr( \ __builtin_types_compatible_p(__typeof(x), long double), ld(x), \ |