[glibc] LoongArch: Use __builtin_{fma, fmaf} to implement function {fma, fmaf}.

Yinyu Cai caiyinyu@sourceware.org
Mon Nov 14 02:03:37 GMT 2022


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


More information about the Glibc-cvs mailing list