x86_64: Add log2 with FMA
commitf6b10ed8e9a00de49d0951e760cc2b5288862b47
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 10 Aug 2023 18:24:30 +0000 (10 11:24 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 11 Aug 2023 14:49:45 +0000 (11 07:49 -0700)
tree8c3e78a82ce26e9d5d7532c3945e1d5a6daa9814
parent542b1105852568c3ebc712225ae78b8c8ba31a78
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%
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]