From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7891) id A6D573852226; Tue, 29 Nov 2022 08:01:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6D573852226 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669708868; bh=LrO/VNLdFYFLya1altEqIeUoCJM6SDfDG4aXPhREYe4=; h=From:To:Subject:Date:From; b=G3zxyack3SmgiD/hkQIu4rh/UN/6dslnBy+eFIPypcsoLk812fftmPA9o/3tgUDHe BLVlhYXZ9LRkNbwcXx16RxA1h+5RQRufCu2ap8urDM9gxXoyz/TvJR2g6EYP69nH3s 3yHzqr6Qj6HCHTHtzWLYiK/d67FBr+35fqDyV2hc= 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_llrint{,f} with GCC >= 13 X-Act-Checkin: glibc X-Git-Author: Xiaolin Tang X-Git-Refname: refs/heads/master X-Git-Oldrev: a1981ecbfd4aec84dea26936d91c8ed9164f8b13 X-Git-Newrev: f711e4ef53990b6c76f2dfdbcb9f791c541cdac3 Message-Id: <20221129080108.A6D573852226@sourceware.org> Date: Tue, 29 Nov 2022 08:01:08 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f711e4ef53990b6c76f2dfdbcb9f791c541cdac3 commit f711e4ef53990b6c76f2dfdbcb9f791c541cdac3 Author: Xiaolin Tang Date: Wed Nov 23 11:44:59 2022 +0800 LoongArch: Use __builtin_llrint{,f} with GCC >= 13 GCC 13 compiles these built-ins instead of generic implementation for function llrint. Link: https://gcc.gnu.org/r13-3920 Co-Authored-By: Xi Ruoyao Diff: --- sysdeps/loongarch/fpu/math-use-builtins-llrint.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sysdeps/loongarch/fpu/math-use-builtins-llrint.h b/sysdeps/loongarch/fpu/math-use-builtins-llrint.h new file mode 100644 index 0000000000..bee5910b09 --- /dev/null +++ b/sysdeps/loongarch/fpu/math-use-builtins-llrint.h @@ -0,0 +1,10 @@ +#if __GNUC_PREREQ (13, 0) +# define USE_LLRINT_BUILTIN 1 +# define USE_LLRINTF_BUILTIN 1 +#else +# define USE_LLRINT_BUILTIN 0 +# define USE_LLRINTF_BUILTIN 0 +#endif + +#define USE_LLRINTL_BUILTIN 0 +#define USE_LLRINTF128_BUILTIN 0