From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 773063858D1E; Mon, 4 Apr 2022 13:00:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 773063858D1E 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: Fix isgreater* and isless* for clang X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 956674013d483f277b3f971bef653d2d442643f7 X-Git-Newrev: 7f8271865082ee05447a3d18e4767f4f3ca0d52e Message-Id: <20220404130028.773063858D1E@sourceware.org> Date: Mon, 4 Apr 2022 13:00:28 +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: Mon, 04 Apr 2022 13:00:28 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7f8271865082ee05447a3d18e4767f4f3ca0d52e commit 7f8271865082ee05447a3d18e4767f4f3ca0d52e Author: Adhemerval Zanella Date: Fri Apr 1 16:35:32 2022 -0300 math: Fix isgreater* and isless* for clang clang does not check for unordered numbers with builtins for _Float128 type. Diff: --- math/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/math.h b/math/math.h index 27963ef6dc..ce830ac1fa 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