about summary refs log tree commit diff
path: root/math/math.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-04-01 17:01:22 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:41 -0300
commitfa7fa397d3090a4d7883439140d50ae1f6f8617b (patch)
treeada0016222e0a67644f1c4dbd53866a3c4a7d335 /math/math.h
parentb04dd4757fb4fcd8f6fc2ca21bf065992390d3a9 (diff)
downloadglibc-fa7fa397d3090a4d7883439140d50ae1f6f8617b.tar.gz
glibc-fa7fa397d3090a4d7883439140d50ae1f6f8617b.tar.xz
glibc-fa7fa397d3090a4d7883439140d50ae1f6f8617b.zip
math: Do not use __builtin_isnan on clang
It does not handle pseudo normal numbers.
Diffstat (limited to 'math/math.h')
-rw-r--r--math/math.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/math/math.h b/math/math.h
index 97e4df863e..59caf4b7e6 100644
--- a/math/math.h
+++ b/math/math.h
@@ -1004,8 +1004,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))