]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86_64: Add expm1 with FMA
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 11 Aug 2023 15:04:08 +0000 (08:04 -0700)
committerSunil K Pandey <skpgkp2@gmail.com>
Fri, 10 Jan 2025 05:24:41 +0000 (21:24 -0800)
commitc0cae389fbf4f7ce3a03177a8cf1ab546f1d3168
treea4fe132549e6ede26a6356aafa341524afa42b1f
parent360786305036f5229338daca3a701edc3f9c25cc
x86_64: Add expm1 with FMA

On Skylake, it improves expm1 bench performance by:

        Before       After     Improvement
max     70.204       68.054       3%
min     20.709       16.2         22%
mean    22.1221      16.7367      24%

NB: Add

extern long double __expm1l (long double);
extern long double __expm1f128 (long double);

for __typeof (__expm1l) and __typeof (__expm1f128) when __expm1 is
defined since __expm1 may be expanded in their declarations which
causes the build failure.

(cherry picked from commit 1b214630ce6f7e0099b8b6f87246246739b079cf)
sysdeps/ieee754/dbl-64/s_expm1.c
sysdeps/x86_64/fpu/multiarch/Makefile
sysdeps/x86_64/fpu/multiarch/s_expm1-fma.c [new file with mode: 0644]
sysdeps/x86_64/fpu/multiarch/s_expm1.c [new file with mode: 0644]