From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7891) id E0E563853D7C; Tue, 29 Nov 2022 08:01:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0E563853D7C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669708878; bh=/+6R+4/1549UUTdkOT8xUG3SHNZ4xr6fUsWPMkPgEBo=; h=From:To:Subject:Date:From; b=cmvI1/L8RjMVlEIaKbqK6sQl/1gPBGis7o24agbZRRZP+NGQDu+dv8JGfWC9iLO+Q kLUPzspx5LGo+OH/egqYwNzLSC7fQAdWnIJ2n1yno6lrH8rM5CjeaSLwpU0KLGuXHj jL5Qy73doXvqEDSySMM7Yz12oRdRT7PscQLT9aL0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Yinyu Cai To: glibc-cvs@sourceware.org Subject: [glibc] LoongArch: Use __builtin_logb{,f} with GCC >= 13 X-Act-Checkin: glibc X-Git-Author: Xiaolin Tang X-Git-Refname: refs/heads/master X-Git-Oldrev: 2e2485ce05bce85bf092ba0752854afa14b92dad X-Git-Newrev: 13c549f49705d10105b16706124077e07068a936 Message-Id: <20221129080118.E0E563853D7C@sourceware.org> Date: Tue, 29 Nov 2022 08:01:18 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=13c549f49705d10105b16706124077e07068a936 commit 13c549f49705d10105b16706124077e07068a936 Author: Xiaolin Tang Date: Wed Nov 23 11:45:01 2022 +0800 LoongArch: Use __builtin_logb{,f} with GCC >= 13 GCC 13 compiles these built-ins instead of generic implementation for function logb. Link: https://gcc.gnu.org/r13-3922 Co-Authored-By: Xi Ruoyao Diff: --- sysdeps/loongarch/fpu/math-use-builtins-logb.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sysdeps/loongarch/fpu/math-use-builtins-logb.h b/sysdeps/loongarch/fpu/math-use-builtins-logb.h new file mode 100644 index 0000000000..b1c3f30dc4 --- /dev/null +++ b/sysdeps/loongarch/fpu/math-use-builtins-logb.h @@ -0,0 +1,10 @@ +#if __GNUC_PREREQ (13, 0) +# define USE_LOGB_BUILTIN 1 +# define USE_LOGBF_BUILTIN 1 +#else +# define USE_LOGB_BUILTIN 0 +# define USE_LOGBF_BUILTIN 0 +#endif + +#define USE_LOGBL_BUILTIN 0 +#define USE_LOGBF128_BUILTIN 0