]> 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 05:24:29 +0000 (21:24 -0800)
commit360786305036f5229338daca3a701edc3f9c25cc
tree1f275b067b7b3f6c7ed67dcc81c5896309b1f57d
parentd5ff2fa5af0c6ce944d5d7a4443eed175e2502ca
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]