]> 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 20:09:24 +0000 (12:09 -0800)
commit516180d399c351e9dddbf3873463e3d64e2b0b13
tree013b4237b05d3a9cadb2c943c1294e0cea43cef5
parent30384b91ad17e6223ef6b02cea73aceffbfb037a
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]