1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00

Fix a bogus threshold that was copied from the double precision version.

This commit should have no effect on correctness; it merely changes the
threshold at which a simpler approximation can be used.

Reviewed by:	bde
This commit is contained in:
David Schultz 2011-02-10 07:37:29 +00:00
parent 78920d0f25
commit b775d18789
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218508

View File

@ -72,7 +72,7 @@ __ieee754_expf(float x) /* default IEEE double exp */
}
x = hi - lo;
}
else if(hx < 0x31800000) { /* when |x|<2**-28 */
else if(hx < 0x39000000) { /* when |x|<2**-14 */
if(huge+x>one) return one+x;/* trigger inexact */
}
else k = 0;