]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86_64: Add log2 with FMA
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 10 Aug 2023 18:24:30 +0000 (11:24 -0700)
committerSunil K Pandey <skpgkp2@gmail.com>
Fri, 10 Jan 2025 16:48:46 +0000 (08:48 -0800)
commitd3bc49260c9fbbaeb17a2f0980c9c277940f9086
tree472cf0334e24026619ed91f8590eae93e9fce143
parentabfa5410a0e1baf2e5f002f9e189c0104d2af4df
x86_64: Add log2 with FMA

On Skylake, it improves log2 bench performance by:

        Before       After     Improvement
max     208.779      63.827       69%
min     9.977        6.55         34%
mean    10.366       6.8191       34%

(cherry picked from commit f6b10ed8e9a00de49d0951e760cc2b5288862b47)
sysdeps/x86_64/fpu/multiarch/Makefile
sysdeps/x86_64/fpu/multiarch/e_log2-fma.c [new file with mode: 0644]
sysdeps/x86_64/fpu/multiarch/e_log2.c [new file with mode: 0644]