]> 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, 13 Mar 2025 13:20:32 +0000 (06:20 -0700)
commitc6352111c72a20b3588ae304dd99b63e25dd6d85
tree18f1ebaaf8dbe06d31944725e3005b31d30d8903
parent360cce0b066f34e85e473c04cdc16e6fa426021b
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>
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]