mirror of git://sourceware.org/git/glibc.git
math: Do not use __builtin_isnan on clang
It does not handle pseudo normal numbers.
This commit is contained in:
parent
bc52945de6
commit
843cdf9b9c
|
@ -973,8 +973,7 @@ enum
|
|||
|
||||
/* Return nonzero value if X is a NaN. We could use `fpclassify' but
|
||||
we already have this functions `__isnan' and it is faster. */
|
||||
# if (__GNUC_PREREQ (4,4) && !defined __SUPPORT_SNAN__) \
|
||||
|| __glibc_clang_prereq (2,8)
|
||||
# if (__GNUC_PREREQ (4,4) && !defined __SUPPORT_SNAN__)
|
||||
# define isnan(x) __builtin_isnan (x)
|
||||
# else
|
||||
# define isnan(x) __MATH_TG ((x), __isnan, (x))
|
||||
|
|
|
@ -352,7 +352,7 @@
|
|||
#define frexpl frexpf128
|
||||
#define getpayloadl getpayloadf128
|
||||
#define isinfl isinff128_do_not_use
|
||||
#define isnanl isnanf128_do_not_use
|
||||
#define isnanl isnanf128
|
||||
#define ldexpl ldexpf128
|
||||
#define llrintl llrintf128
|
||||
#define llroundl llroundf128
|
||||
|
|
Loading…
Reference in New Issue