From 890868ea70b0a9d8167b3fc6ba361e85a20823b6 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 1 Apr 2022 17:03:34 -0300 Subject: math: Do not use __builtin_isinf on clang It does not handle pseudo normal numbers. --- math/math.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/math/math.h b/math/math.h index 59caf4b7e6..0173919543 100644 --- a/math/math.h +++ b/math/math.h @@ -1022,8 +1022,7 @@ enum # define isinf(x) \ (__builtin_types_compatible_p (__typeof (x), _Float128) \ ? __isinff128 (x) : __builtin_isinf_sign (x)) -# elif (__GNUC_PREREQ (4,4) && !defined __SUPPORT_SNAN__) \ - || __glibc_clang_prereq (3,7) +# elif (__GNUC_PREREQ (4,4) && !defined __SUPPORT_SNAN__) # define isinf(x) __builtin_isinf_sign (x) # else # define isinf(x) __MATH_TG ((x), __isinf, (x)) -- cgit v1.2.3