diff options
author | Xiaolin Tang <tangxiaolin@loongson.cn> | 2022-11-07 22:05:15 +0800 |
---|---|---|
committer | caiyinyu <caiyinyu@loongson.cn> | 2022-11-14 10:02:41 +0800 |
commit | 56da6a073daaf86a7044df22b8778e913db5099c (patch) | |
tree | e2a7306c9b10a20d0e78644f044ac16a13ec94c1 /sysdeps/loongarch/fpu | |
parent | 22a46dee24351fd5f4f188ad80554cad79c82524 (diff) | |
download | glibc-56da6a073daaf86a7044df22b8778e913db5099c.tar glibc-56da6a073daaf86a7044df22b8778e913db5099c.tar.gz glibc-56da6a073daaf86a7044df22b8778e913db5099c.tar.bz2 glibc-56da6a073daaf86a7044df22b8778e913db5099c.zip |
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.
Diffstat (limited to 'sysdeps/loongarch/fpu')
-rw-r--r-- | sysdeps/loongarch/fpu/math-use-builtins-fma.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |