diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-22 08:07:48 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-22 08:08:00 -0700 |
commit | 80bb5935632faf8a8e94daf976340e549be9d4c5 (patch) | |
tree | 548797b41ae7fcbc7a2025cc0060f7bd8b7da16c /sysdeps/x86_64/fpu/multiarch/e_powf-fma.c | |
parent | 5c7adbd8eded546eb6e17a82f5ab3b35def47f38 (diff) | |
download | glibc-80bb5935632faf8a8e94daf976340e549be9d4c5.tar.gz glibc-80bb5935632faf8a8e94daf976340e549be9d4c5.tar.xz glibc-80bb5935632faf8a8e94daf976340e549be9d4c5.zip |
x86-64: Add powf with FMA
For workload-spec2017.wrf, on Skylake, it improves performance by: Before After Improvement reciprocal-throughput 35.4713 27.3842 29% latency 82.4537 66.3175 24% * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines): Add e_powf-fma. (CFLAGS-e_powf-fma.c): New. * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file. * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
Diffstat (limited to 'sysdeps/x86_64/fpu/multiarch/e_powf-fma.c')
-rw-r--r-- | sysdeps/x86_64/fpu/multiarch/e_powf-fma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/x86_64/fpu/multiarch/e_powf-fma.c b/sysdeps/x86_64/fpu/multiarch/e_powf-fma.c new file mode 100644 index 0000000000..fdf5dcc56a --- /dev/null +++ b/sysdeps/x86_64/fpu/multiarch/e_powf-fma.c @@ -0,0 +1,3 @@ +#define __powf __powf_fma + +#include <sysdeps/ieee754/flt-32/e_powf.c> |