From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id A2D0F38582A1; Wed, 7 Feb 2024 14:12:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2D0F38582A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707315152; bh=VtuZfd0iwV31K1kSqYI8ipVNOK4t7kjXimxeqndSLRM=; h=From:To:Subject:Date:From; b=W+7zfRKD8bwYxm8CbX0A48Fb17gUYSnBxTFl5EJ5KCClhSI27+HitdI7qPULq5QP5 DVhUxWXZ9wzRWj4Cniw5bG3rv7zleYAaO/O7C48zh+0NPtzMfaLHdiT6eP4yqDF04F VC9S/GvJX0mm/aL4j2IT8rrtA2y7yqiZF45mYlJM= 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: 3ad4af43c0225bed9ed45a8e328bae1dd1dd7333 X-Git-Newrev: 2371305333b108b9361c2346d5e2ffbdb1adfb33 Message-Id: <20240207141232.A2D0F38582A1@sourceware.org> Date: Wed, 7 Feb 2024 14:12:32 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2371305333b108b9361c2346d5e2ffbdb1adfb33 commit 2371305333b108b9361c2346d5e2ffbdb1adfb33 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 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)