diff --git a/newlib/libm/math/e_exp.c b/newlib/libm/math/e_exp.c index 81ea64dfb..d23b1162b 100644 --- a/newlib/libm/math/e_exp.c +++ b/newlib/libm/math/e_exp.c @@ -142,7 +142,7 @@ P5 = 4.13813679705723846039e-08; /* 0x3E663769, 0x72BEA4D0 */ } x = hi - lo; } - else if(hx < 0x3e300000) { /* when |x|<2**-28 */ + else if(hx < 0x3df00000) { /* when |x|<2**-32 */ if(huge+x>one) return one+x;/* trigger inexact */ } diff --git a/newlib/libm/math/ef_exp.c b/newlib/libm/math/ef_exp.c index e817370ac..fb3e2ffe6 100644 --- a/newlib/libm/math/ef_exp.c +++ b/newlib/libm/math/ef_exp.c @@ -77,7 +77,7 @@ P5 = 4.1381369442e-08; /* 0x3331bb4c */ } x = hi - lo; } - else if(hx < 0x31800000) { /* when |x|<2**-28 */ + else if(hx < 0x34000000) { /* when |x|<2**-23 */ if(huge+x>one) return one+x;/* trigger inexact */ }