From 5c7adbd8eded546eb6e17a82f5ab3b35def47f38 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 22 Oct 2017 08:06:46 -0700 Subject: x86-64: Add log2f with FMA For workload-spec2017.wrf, on Skylake, it improves performance by: Before After Improvement reciprocal-throughput 16.5937 14.0789 17% latency 41.7755 35.3586 18% * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines): Add e_log2f-fma. (CFLAGS-e_log2f-fma.c): New. * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file. * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise. --- sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c (limited to 'sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c') diff --git a/sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c b/sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c new file mode 100644 index 0000000000..8a76b836fb --- /dev/null +++ b/sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c @@ -0,0 +1,3 @@ +#define __log2f __log2f_fma + +#include -- cgit 1.4.1