From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id D23FA396E423; Fri, 13 May 2022 14:25:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D23FA396E423 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] math: Do not use __builtin_fpclassify on clang X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 1c099e5d3bae284da8ce5c6033a75f564efc1c6c X-Git-Newrev: 7af569b0aac98055c6cfc34518c1fa65658d475f Message-Id: <20220513142541.D23FA396E423@sourceware.org> Date: Fri, 13 May 2022 14:25:41 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2022 14:25:41 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7af569b0aac98055c6cfc34518c1fa65658d475f commit 7af569b0aac98055c6cfc34518c1fa65658d475f Author: Adhemerval Zanella Date: Fri Apr 1 16:54:55 2022 -0300 math: Do not use __builtin_fpclassify on clang It does not handle pseudo normal numbers. Diff: --- math/math.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/math/math.h b/math/math.h index ce830ac1fa..678102402c 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)