glibc/sysdeps/x86_64/fpu/multiarch/e_log2-fma.c
H.J. Lu f6b10ed8e9 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%
2023-08-11 07:49:45 -07:00

4 lines
70 B
C

#define __log2 __log2_fma
#include <sysdeps/ieee754/dbl-64/e_log2.c>