public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] LoongArch: Use __builtin_{fma, fmaf} to implement function {fma, fmaf}.
@ 2022-11-14 2:03 Yinyu Cai
0 siblings, 0 replies; only message in thread
From: Yinyu Cai @ 2022-11-14 2:03 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=56da6a073daaf86a7044df22b8778e913db5099c
commit 56da6a073daaf86a7044df22b8778e913db5099c
Author: Xiaolin Tang <tangxiaolin@loongson.cn>
Date: Mon Nov 7 22:05:15 2022 +0800
LoongArch: Use __builtin_{fma, fmaf} to implement function {fma, fmaf}.
Use __builtin_{fma, fmaf} to implement function {fma, fmaf} instead of
the generic implementation.
* sysdeps/loongarch/fpu/math-use-builtins-fma.h: New file.
Diff:
---
sysdeps/loongarch/fpu/math-use-builtins-fma.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sysdeps/loongarch/fpu/math-use-builtins-fma.h b/sysdeps/loongarch/fpu/math-use-builtins-fma.h
new file mode 100644
index 0000000000..eede75aa41
--- /dev/null
+++ b/sysdeps/loongarch/fpu/math-use-builtins-fma.h
@@ -0,0 +1,4 @@
+#define USE_FMA_BUILTIN 1
+#define USE_FMAF_BUILTIN 1
+#define USE_FMAL_BUILTIN 0
+#define USE_FMAF128_BUILTIN 0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-14 2:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-14 2:03 [glibc] LoongArch: Use __builtin_{fma, fmaf} to implement function {fma, fmaf} Yinyu Cai
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).