summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2011-02-10 07:37:29 +0000
committerdas <das@FreeBSD.org>2011-02-10 07:37:29 +0000
commitf2ff0c6d0eea75db8803d1e7ffbdc0b438257407 (patch)
tree8af1ebf0dd8518948b3f0d293e98ebda7e9d4a47
parent1fb177abe260e02bea61ae30726ccc7f80a357c0 (diff)
downloadFreeBSD-src-f2ff0c6d0eea75db8803d1e7ffbdc0b438257407.zip
FreeBSD-src-f2ff0c6d0eea75db8803d1e7ffbdc0b438257407.tar.gz
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
-rw-r--r--lib/msun/src/e_expf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/src/e_expf.c b/lib/msun/src/e_expf.c
index 5f46492..502e421 100644
--- a/lib/msun/src/e_expf.c
+++ b/lib/msun/src/e_expf.c
@@ -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;
OpenPOWER on IntegriCloud