diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-06-04 14:32:17 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-06-22 11:09:45 -0300 |
commit | e80501a5c971c13f9bd72fe7b34a83aa36ec6541 (patch) | |
tree | 1fe929a28af22a2b07831094a1d8ad51adaec4e9 /sysdeps/powerpc/fpu/math-use-builtins-fma.h | |
parent | c013d5d3aae97c09e10c7b73a72af6086e6e1b98 (diff) | |
download | glibc-e80501a5c971c13f9bd72fe7b34a83aa36ec6541.tar.gz glibc-e80501a5c971c13f9bd72fe7b34a83aa36ec6541.tar.xz glibc-e80501a5c971c13f9bd72fe7b34a83aa36ec6541.zip |
math: Decompose math-use-builtins.h
Each symbol definitions are moved on a separated file and it cover all symbol type definitions (float, double, long double, and float128). It allows to set support for architectures without the boiler place of copying default values. Checked with a build on the affected ABIs.
Diffstat (limited to 'sysdeps/powerpc/fpu/math-use-builtins-fma.h')
-rw-r--r-- | sysdeps/powerpc/fpu/math-use-builtins-fma.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/powerpc/fpu/math-use-builtins-fma.h b/sysdeps/powerpc/fpu/math-use-builtins-fma.h new file mode 100644 index 0000000000..5652e55185 --- /dev/null +++ b/sysdeps/powerpc/fpu/math-use-builtins-fma.h @@ -0,0 +1,9 @@ +#define USE_FMA_BUILTIN 1 +#define USE_FMAF_BUILTIN 1 +#define USE_FMAL_BUILTIN 0 +/* This is not available for P8 or BE targets. */ +#ifdef __FP_FAST_FMAF128 +# define USE_FMAF128_BUILTIN 1 +#else +# define USE_FMAF128_BUILTIN 0 +#endif |