diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-04-01 16:54:55 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-02-09 10:29:18 -0300 |
commit | 2d24531a61f3cf868a42b218582ea337b64c598d (patch) | |
tree | e09ff9a584a20aa2fdbff38ea90fdb0e33cdc272 | |
parent | 867d2f27a78e9bc9536107f03a4267756706e444 (diff) | |
download | glibc-2d24531a61f3cf868a42b218582ea337b64c598d.tar glibc-2d24531a61f3cf868a42b218582ea337b64c598d.tar.gz glibc-2d24531a61f3cf868a42b218582ea337b64c598d.tar.bz2 glibc-2d24531a61f3cf868a42b218582ea337b64c598d.zip |
math: Do not use __builtin_fpclassify on clang
It does not handle pseudo normal numbers.
-rw-r--r-- | math/math.h | 6 |
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) |