mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 12:11:10 +00:00
MIPSr6/math: Use builtin fma and fmaf
MIPSr6 has MADDF.s/MADDF.d instructions, which are fused. In MIPS ISA, double support can be subsetted. Only FMAF is enabled for this case. * sysdeps/mips/fpu/math-use-builtins-fma.h Signed-off-by: YunQiang Su <syq@gcc.gnu.org> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
6f8c0dca8c
commit
9e06e4a43b
13
sysdeps/mips/fpu/math-use-builtins-fma.h
Normal file
13
sysdeps/mips/fpu/math-use-builtins-fma.h
Normal file
@ -0,0 +1,13 @@
|
||||
#if __mips_isa_rev >= 6
|
||||
# ifdef __mips_single_float
|
||||
# define USE_FMA_BUILTIN 0
|
||||
# else
|
||||
# define USE_FMA_BUILTIN 1
|
||||
# endif
|
||||
# define USE_FMAF_BUILTIN 1
|
||||
#else
|
||||
# define USE_FMA_BUILTIN 0
|
||||
# define USE_FMAF_BUILTIN 0
|
||||
#endif
|
||||
#define USE_FMAL_BUILTIN 0
|
||||
#define USE_FMAF128_BUILTIN 0
|
Loading…
Reference in New Issue
Block a user