public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/9] LoongArch: Use __builtin_rint{,f} with GCC >= 13
@ 2022-11-18 11:30 Xiaolin Tang
  0 siblings, 0 replies; 3+ messages in thread
From: Xiaolin Tang @ 2022-11-18 11:30 UTC (permalink / raw)
  To: adhemerval.zanella, libc-alpha, caiyinyu, xry111; +Cc: xuchenghua, chenglulu

From: Xi Ruoyao <xry111@xry111.site>

GCC 13 compiles these built-ins to frint.{d,s} instruction.

Link: https://gcc.gnu.org/r13-3919
---
 sysdeps/loongarch/fpu/math-use-builtins-rint.h | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 sysdeps/loongarch/fpu/math-use-builtins-rint.h

diff --git a/sysdeps/loongarch/fpu/math-use-builtins-rint.h b/sysdeps/loongarch/fpu/math-use-builtins-rint.h
new file mode 100644
index 0000000000..cd91482f5f
--- /dev/null
+++ b/sysdeps/loongarch/fpu/math-use-builtins-rint.h
@@ -0,0 +1,9 @@
+#if __GNUC_PREREQ (13, 0)
+#  define USE_RINT_BUILTIN 1
+#  define USE_RINTF_BUILTIN 1
+#else
+#  define USE_RINT_BUILTIN 0
+#  define USE_RINTF_BUILTIN 0
+#endif
+#define USE_RINTL_BUILTIN 0
+#define USE_RINTF128_BUILTIN 0
-- 
2.20.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/9] LoongArch: Use __builtin_rint{,f} with GCC >= 13
  2022-11-23  2:38 [PATCH 0/9] LoongArch: Use builtins " Xiaolin Tang
@ 2022-11-23  2:38 ` Xiaolin Tang
  0 siblings, 0 replies; 3+ messages in thread
From: Xiaolin Tang @ 2022-11-23  2:38 UTC (permalink / raw)
  To: adhemerval.zanella, libc-alpha, caiyinyu, xry111; +Cc: xuchenghua, chenglulu

From: Xi Ruoyao <xry111@xry111.site>

GCC 13 compiles these built-ins to frint.{d,s} instruction.

Link: https://gcc.gnu.org/r13-3919
---
 sysdeps/loongarch/fpu/math-use-builtins-rint.h | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 sysdeps/loongarch/fpu/math-use-builtins-rint.h

diff --git a/sysdeps/loongarch/fpu/math-use-builtins-rint.h b/sysdeps/loongarch/fpu/math-use-builtins-rint.h
new file mode 100644
index 0000000000..cd91482f5f
--- /dev/null
+++ b/sysdeps/loongarch/fpu/math-use-builtins-rint.h
@@ -0,0 +1,9 @@
+#if __GNUC_PREREQ (13, 0)
+#  define USE_RINT_BUILTIN 1
+#  define USE_RINTF_BUILTIN 1
+#else
+#  define USE_RINT_BUILTIN 0
+#  define USE_RINTF_BUILTIN 0
+#endif
+#define USE_RINTL_BUILTIN 0
+#define USE_RINTF128_BUILTIN 0
-- 
2.20.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/9] LoongArch: Use __builtin_rint{,f} with GCC >= 13
  2022-11-18 11:29 [PATCH 0/9] LoongArch: Use builtins " Xiaolin Tang
@ 2022-11-18 11:29 ` Xiaolin Tang
  0 siblings, 0 replies; 3+ messages in thread
From: Xiaolin Tang @ 2022-11-18 11:29 UTC (permalink / raw)
  To: adhemerval.zanella, libc-alpha, caiyinyu, xry111; +Cc: xuchenghua, chenglulu

From: Xi Ruoyao <xry111@xry111.site>

GCC 13 compiles these built-ins to frint.{d,s} instruction.

Link: https://gcc.gnu.org/r13-3919
---
 sysdeps/loongarch/fpu/math-use-builtins-rint.h | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 sysdeps/loongarch/fpu/math-use-builtins-rint.h

diff --git a/sysdeps/loongarch/fpu/math-use-builtins-rint.h b/sysdeps/loongarch/fpu/math-use-builtins-rint.h
new file mode 100644
index 0000000000..cd91482f5f
--- /dev/null
+++ b/sysdeps/loongarch/fpu/math-use-builtins-rint.h
@@ -0,0 +1,9 @@
+#if __GNUC_PREREQ (13, 0)
+#  define USE_RINT_BUILTIN 1
+#  define USE_RINTF_BUILTIN 1
+#else
+#  define USE_RINT_BUILTIN 0
+#  define USE_RINTF_BUILTIN 0
+#endif
+#define USE_RINTL_BUILTIN 0
+#define USE_RINTF128_BUILTIN 0
-- 
2.20.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-23  2:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-18 11:30 [PATCH 1/9] LoongArch: Use __builtin_rint{,f} with GCC >= 13 Xiaolin Tang
  -- strict thread matches above, loose matches on Subject: below --
2022-11-23  2:38 [PATCH 0/9] LoongArch: Use builtins " Xiaolin Tang
2022-11-23  2:38 ` [PATCH 1/9] LoongArch: Use __builtin_rint{,f} " Xiaolin Tang
2022-11-18 11:29 [PATCH 0/9] LoongArch: Use builtins " Xiaolin Tang
2022-11-18 11:29 ` [PATCH 1/9] LoongArch: Use __builtin_rint{,f} " Xiaolin Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).