From f2ff0c6d0eea75db8803d1e7ffbdc0b438257407 Mon Sep 17 00:00:00 2001 From: das Date: Thu, 10 Feb 2011 07:37:29 +0000 Subject: [PATCH] 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 --- lib/msun/src/e_expf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msun/src/e_expf.c b/lib/msun/src/e_expf.c index 5f4649244f77..502e42138d11 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;