From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7891) id 6E29C3853D5A; Tue, 29 Nov 2022 08:00:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E29C3853D5A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669708858; bh=CQ6v4EQrK6n5IBclcqGfiOxJeWfSvCtrnEFkAkkqY6w=; h=From:To:Subject:Date:From; b=E7xFQlS41NMMCopfENQVzkkNQOPGaUNuOPZjG8pBZU9mz2dc0lNQtzPBS3JXt1U9W RS5nf27pADA/zHUmCcoF4Aof4uW7NA9GPxFFvkGxaVV/lQOVz8oSZp+hK7MvB0vbzF 92ogV2vbuA9qDtO/AsCoDMSEFvMEWG9Tiux4KgqM= 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_lrint{,f} with GCC >= 13 X-Act-Checkin: glibc X-Git-Author: Xiaolin Tang X-Git-Refname: refs/heads/master X-Git-Oldrev: 2b23ab1feab5a59bcc1931666663b2a8eac3fdbc X-Git-Newrev: e1697a540c49d5bd35e84b22fcd537c14f71a4e9 Message-Id: <20221129080058.6E29C3853D5A@sourceware.org> Date: Tue, 29 Nov 2022 08:00:58 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e1697a540c49d5bd35e84b22fcd537c14f71a4e9 commit e1697a540c49d5bd35e84b22fcd537c14f71a4e9 Author: Xiaolin Tang Date: Wed Nov 23 11:44:57 2022 +0800 LoongArch: Use __builtin_lrint{,f} with GCC >= 13 GCC 13 compiles these built-ins instead of generic implementation for function lrint. Link: https://gcc.gnu.org/r13-3920 Co-Authored-By: Xi Ruoyao Diff: --- sysdeps/loongarch/fpu/math-use-builtins-lrint.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sysdeps/loongarch/fpu/math-use-builtins-lrint.h b/sysdeps/loongarch/fpu/math-use-builtins-lrint.h new file mode 100644 index 0000000000..7df8aac81f --- /dev/null +++ b/sysdeps/loongarch/fpu/math-use-builtins-lrint.h @@ -0,0 +1,10 @@ +#if __GNUC_PREREQ (13, 0) +# define USE_LRINT_BUILTIN 1 +# define USE_LRINTF_BUILTIN 1 +#else +# define USE_LRINT_BUILTIN 0 +# define USE_LRINTF_BUILTIN 0 +#endif + +#define USE_LRINTL_BUILTIN 0 +#define USE_LRINTF128_BUILTIN 0