]> 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>
Sat, 11 Jan 2025 23:28:29 +0000 (15:28 -0800)
commit7285049c71dcb87c9494ef9fb39c63bf7f005cc7
tree853b8ee3106b895113aeec1a7740168333683493
parent0cd2f520f008729219157f5f0b9c456b9820f71f
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]