From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 93E4E38582A3; Tue, 4 Oct 2022 13:04:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 93E4E38582A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664888675; bh=HTxNo66QDnttV4NW6dMKoRJXTtGyXD771tb/0LJScII=; h=From:To:Subject:Date:From; b=lC+a/M2tlbfKgHuE4MSNf7kF2MexGIKk2at9vs+5EhMjOqYtkDxCRMxSOSYrIs1xU 6S1cwetabBp27f7Z5FPob78vJ5ah5oLUHpItCXNOJM2jmfJ22vd7s78WdLlZ4EYFf4 kPhG+4pLBDKtyoceqNZjhe/cDbmYAZxXrl7bp6H4= 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: 3dd5f9baab71dd8271f2d9f5817da0d526e88e3a X-Git-Newrev: 8ba31da322cb6a9c469dc78db1d48e79ce4dc324 Message-Id: <20221004130435.93E4E38582A3@sourceware.org> Date: Tue, 4 Oct 2022 13:04:35 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8ba31da322cb6a9c469dc78db1d48e79ce4dc324 commit 8ba31da322cb6a9c469dc78db1d48e79ce4dc324 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 cf980c37c3..a2dd5475d9 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