]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86_64: Add tanh with FMA
authorSunil K Pandey <skpgkp2@gmail.com>
Mon, 10 Mar 2025 17:24:07 +0000 (10:24 -0700)
committerSunil K Pandey <skpgkp2@gmail.com>
Thu, 20 Mar 2025 00:32:59 +0000 (17:32 -0700)
commit0edcc77fe7e13b29d99e7f4d7fe3373b3666468e
treef7f1fd14e11b3a049e5262dcbbc7f85d847dd76e
parent7ecf0d3bde54e4f9e6f025d2f43eff565ed97414
x86_64: Add tanh with FMA

On Skylake, it improves tanh bench performance by:

Before  After  Improvement
max 110.89 95.826 14%
min 20.966 20.157 4%
mean 30.9601 29.8431 4%

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit c6352111c72a20b3588ae304dd99b63e25dd6d85)
sysdeps/ieee754/dbl-64/s_tanh.c
sysdeps/x86_64/fpu/multiarch/Makefile
sysdeps/x86_64/fpu/multiarch/s_tanh-fma.c [new file with mode: 0644]
sysdeps/x86_64/fpu/multiarch/s_tanh.c [new file with mode: 0644]