Skip to content
Commit 76d0f094 authored by Wilco Dijkstra's avatar Wilco Dijkstra
Browse files

math: Improve fmod(f) performance



Optimize the fast paths (x < y) and (x/y < 2^12).  Delay handling of special
cases to reduce the number of instructions executed before the fast paths.
Performance improvements for fmod:

		Skylake	Zen2	Neoverse V1
subnormals	11.8%	4.2%	11.5%
normal		3.9%	0.01%	-0.5%
close-exponents	6.3%	5.6%	19.4%

Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent 26234791
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment