]> git.ipfire.org Git - thirdparty/glibc.git/commit
math: Add fast-path to fma master
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 9 Mar 2026 20:11:12 +0000 (17:11 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 7 Apr 2026 16:21:20 +0000 (13:21 -0300)
commitdfb150f3aadd93118a78ef9e19c2663f0e1994b7
tree8bc471e67e81b32a5c9b1daaf97e8431f1a4fb8f
parent7594b4e5a75d41e891782aa7e3fb51924f6840cb
math: Add fast-path to fma

For normal numbers there is no need to issue scalbn, the fma can set
the exponend directly.   Performance-wise on x86_64-linux-gnu without
multi-arch it shows a latency improvement of ~5% and throughput of %7
(and sligth more for ABIs witht tail-call optimization).

Checked on x86_64-linux-gnu and i686-linux-gnu with --disable-multi-arch.
Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
sysdeps/ieee754/dbl-64/s_fma.c