x86-64: Add logf with FMA

System Internals / glibc - H.J. Lu [gmail.com] - 22 October 2017 11:05 EDT

For workload-spec2017.wrf, on Skylake, it improves performance by:

Before After Improvement reciprocal-throughput 16.1534 13.8874 16% latency 41.9642 34.3072 22%

- sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines): Add e_logf-fma. (CFLAGS-e_logf-fma.c): New.
- sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
- sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.

0ccc715 x86-64: Add logf with FMA
ChangeLog | 8 +++++++
sysdeps/x86_64/fpu/multiarch/Makefile | 3 ++-
sysdeps/x86_64/fpu/multiarch/e_logf-fma.c | 3 +++
sysdeps/x86_64/fpu/multiarch/e_logf.c | 40 +++++++++++++++++++++++++++++++
4 files changed, 53 insertions(+), 1 deletion(-)

Upstream: sourceware.org


  • Share