summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-04-01 16:35:32 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-02-09 16:36:05 -0300
commit1d8bf2430ed01495573dfe13e97168f4f7013a11 (patch)
tree9637872402f9025feed4d5bee4de02a5ab2452c3
parent106f8e63b7a1d69e237bfb585c190f443dae39aa (diff)
downloadglibc-1d8bf2430ed01495573dfe13e97168f4f7013a11.tar.gz
math: Fix isgreater* and isless* for clang
clang does not check for unordered numbers with builtins for _Float128 type.
-rw-r--r--math/math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/math.h b/math/math.h
index 6dc0604132..db5763ec00 100644
--- a/math/math.h
+++ b/math/math.h
@@ -1295,7 +1295,7 @@ iszero (__T __val)
#endif
#ifdef __USE_ISOC99
-# if __GNUC_PREREQ (3, 1)
+# if __GNUC_PREREQ (3, 1) && !defined __clang__
/* ISO C99 defines some macros to compare number while taking care for
unordered numbers. Many FPUs provide special instructions to support
these operations. Generic support in GCC for these as builtins went