From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 07B6C38A90B4; Thu, 28 Sep 2023 17:57:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07B6C38A90B4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695923844; bh=S0EmfJUL/aOKs7k1QCRBkPNEY0KKhY4IStfKrXKKzL0=; h=From:To:Subject:Date:From; b=OSq6p7/UKT0UWt6H8jGPDhJpE/mX45RCZAiz6R1jxKZOpO4u5V3Cw0r3C1z5uJ5xH u5Dv6BzI8RZv+IohXyTn3Lqpve2dA88rbqT++TCutjVa09+qdS1O01sdZHGe+mvD7r N9UsCt+Sgi13JEwKB3tr/N6k9k8dC15eQRsZ72Z4= 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: b3051b4f40d39229f73136cf002ff5d1b3f34f03 X-Git-Newrev: 06e16870344d01b7052ea7cc9f5668d94de945fd Message-Id: <20230928175724.07B6C38A90B4@sourceware.org> Date: Thu, 28 Sep 2023 17:57:24 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=06e16870344d01b7052ea7cc9f5668d94de945fd commit 06e16870344d01b7052ea7cc9f5668d94de945fd 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 f13639943e..f30a54937a 100644 --- a/math/math.h +++ b/math/math.h @@ -1296,7 +1296,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