From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 272643858D28; Tue, 2 Apr 2024 15:59:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 272643858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712073546; bh=iB7yLGEAUTMHf2FIzXxCq1v3mZinbfkOKDgpqOCLPFs=; h=From:To:Subject:Date:From; b=tRrwOTbFcfLCSPZxQo3p1IQxiqiaH0DlBhsXYuEJi3T+cfiKmmo7AkoJphYXBst9S Jkzs2oRA0r4EtPAhIuxvE7gqs97Tw6QXFrCefxh5CVKH3ouUP4y3zTEPOzTh3J2Xiv T4azhg9EcO+BenmsaCptrgzlJlZ8QZ1crJkmxwHc= 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_isinf on clang X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 379c03abaa9f2f52c791d5bf63508d70b2bb5bb2 X-Git-Newrev: b5d8b4f3756e337c0872c2b8db94f1e5e7da5dfe Message-Id: <20240402155906.272643858D28@sourceware.org> Date: Tue, 2 Apr 2024 15:59:06 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b5d8b4f3756e337c0872c2b8db94f1e5e7da5dfe commit b5d8b4f3756e337c0872c2b8db94f1e5e7da5dfe Author: Adhemerval Zanella Date: Fri Apr 1 17:03:34 2022 -0300 math: Do not use __builtin_isinf on clang It does not handle pseudo normal numbers. Diff: --- math/math.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/math/math.h b/math/math.h index 59caf4b7e6..0173919543 100644 --- a/math/math.h +++ b/math/math.h @@ -1022,8 +1022,7 @@ enum # define isinf(x) \ (__builtin_types_compatible_p (__typeof (x), _Float128) \ ? __isinff128 (x) : __builtin_isinf_sign (x)) -# elif (__GNUC_PREREQ (4,4) && !defined __SUPPORT_SNAN__) \ - || __glibc_clang_prereq (3,7) +# elif (__GNUC_PREREQ (4,4) && !defined __SUPPORT_SNAN__) # define isinf(x) __builtin_isinf_sign (x) # else # define isinf(x) __MATH_TG ((x), __isinf, (x))