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:
parent
1fb177abe2
commit
f2ff0c6d0e
@ -72,7 +72,7 @@ __ieee754_expf(float x) /* default IEEE double exp */
|
|||||||
}
|
}
|
||||||
x = hi - lo;
|
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 */
|
if(huge+x>one) return one+x;/* trigger inexact */
|
||||||
}
|
}
|
||||||
else k = 0;
|
else k = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user