about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-04-01 16:54:55 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:41 -0300
commitb04dd4757fb4fcd8f6fc2ca21bf065992390d3a9 (patch)
tree8a0540c3a9781ad9c7d47a4ef68d0f8c39a68404
parenta4112fc8babf51c86841f0420367dab31f5ac7db (diff)
downloadglibc-b04dd4757fb4fcd8f6fc2ca21bf065992390d3a9.tar.gz
glibc-b04dd4757fb4fcd8f6fc2ca21bf065992390d3a9.tar.xz
glibc-b04dd4757fb4fcd8f6fc2ca21bf065992390d3a9.zip
math: Do not use __builtin_fpclassify on clang
It does not handle pseudo normal numbers.
-rw-r--r--math/math.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/math/math.h b/math/math.h
index e1d266f4b3..97e4df863e 100644
--- a/math/math.h
+++ b/math/math.h
@@ -955,8 +955,7 @@ enum
    the __SUPPORT_SNAN__ check may be skipped for those versions.  */
 
 /* Return number of classification appropriate for X.  */
-# if ((__GNUC_PREREQ (4,4) && !defined __SUPPORT_SNAN__)		      \
-      || __glibc_clang_prereq (2,8))					      \
+# if ((__GNUC_PREREQ (4,4) && !defined __SUPPORT_SNAN__))		      \
      && (!defined __OPTIMIZE_SIZE__ || defined __cplusplus)
      /* The check for __cplusplus allows the use of the builtin, even
 	when optimization for size is on.  This is provided for
@@ -997,8 +996,7 @@ enum
 # endif
 
 /* Return nonzero value if X is neither zero, subnormal, Inf, nor NaN.  */
-# if (__GNUC_PREREQ (4,4) && !defined __SUPPORT_SNAN__) \
-     || __glibc_clang_prereq (2,8)
+# if (__GNUC_PREREQ (4,4) && !defined __SUPPORT_SNAN__)
 #  define isnormal(x) __builtin_isnormal (x)
 # else
 #  define isnormal(x) (fpclassify (x) == FP_NORMAL)