diff options
author | das <das@FreeBSD.org> | 2011-02-10 07:37:29 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2011-02-10 07:37:29 +0000 |
commit | f2ff0c6d0eea75db8803d1e7ffbdc0b438257407 (patch) | |
tree | 8af1ebf0dd8518948b3f0d293e98ebda7e9d4a47 /lib/msun | |
parent | 1fb177abe260e02bea61ae30726ccc7f80a357c0 (diff) | |
download | FreeBSD-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
Diffstat (limited to 'lib/msun')
-rw-r--r-- | lib/msun/src/e_expf.c | 2 |
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; |