x86-64: Add sinf with FMA

System Internals / glibc - H.J. Lu [gmail.com] - 7 December 2017 18:11 EST

On Skylake, bench-sinf reports performance improvement:

Before After Improvement max 153.996 100.094 54% min 8.546 6.852 25% mean 18.1223 11.802 54%

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

9d0ffa60ad x86-64: Add sinf with FMA
ChangeLog | 9 +++++++++
NEWS | 4 ++--
sysdeps/x86_64/fpu/multiarch/Makefile | 5 ++++-
sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c | 2 ++
sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c | 2 ++
sysdeps/x86_64/fpu/multiarch/s_sinf.c | 28 ++++++++++++++++++++++++++++
6 files changed, 47 insertions(+), 3 deletions(-)

Upstream: sourceware.org


  • Share