]> git.feebdaed.xyz Git - 0xmirror/glibc.git/commit
aarch64: Optimise AdvSIMD log2f
authorJames Chesterman <James.Chesterman@arm.com>
Wed, 19 Nov 2025 14:11:39 +0000 (14:11 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 4 Dec 2025 11:31:15 +0000 (08:31 -0300)
commitfe83660a7eaf29144c517fff4950030056b78078
tree3088930848d0288bc6e11199609f3e2f27036d1b
parentab8138303cd4ea3de8947817ac7a246a1a34d18e
aarch64: Optimise AdvSIMD log2f

Optimise AdvSIMD log2f by vectorising the special case.
Use scaling technique on subnormal values, then check for inf and
nan values.
The scaling technique used will sqrt the input then multiply the
output by 2 because:
log(sqrt(x)) = 1/2 log(x), so log(x) = 2log(sqrt(x))

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/aarch64/fpu/log2f_advsimd.c