math: fix expm1f overflow threshold
authorSzabolcs Nagy <nsz@port70.net>
Fri, 5 Feb 2021 19:51:36 +0000 (19:51 +0000)
committerRich Felker <dalias@aerifal.cx>
Wed, 10 Feb 2021 19:06:50 +0000 (14:06 -0500)
commit964104f9f0e056cf58d9defa0b716d7756f040f6
tree6d71a99a105627e40fd9c2a1acfa161fa9a9e39f
parentc4c38e6364323b6d83ba3428464e19987b981d7a
math: fix expm1f overflow threshold

the threshold was wrong so expm1f overflowed to inf a bit too early
and on most targets uint32_t compare is faster than float compare so
use that.

this also fixes sinhf incorrectly returning nan for some values where
the internal expm1f overflowed.
src/math/expm1f.c