]> 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>
Sat, 11 Jan 2025 23:28:40 +0000 (15:28 -0800)
commit691c103e106746b4edafb97422661742e74013b9
tree6e0bbd0de6c5ba38dacaf03a75ef276dc4dafc59
parent7285049c71dcb87c9494ef9fb39c63bf7f005cc7
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]