From 80bb5935632faf8a8e94daf976340e549be9d4c5 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 22 Oct 2017 08:07:48 -0700 Subject: 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. --- sysdeps/x86_64/fpu/multiarch/e_powf-fma.c | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 sysdeps/x86_64/fpu/multiarch/e_powf-fma.c (limited to 'sysdeps/x86_64/fpu/multiarch/e_powf-fma.c') 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 -- cgit 1.4.1