diff options
Diffstat (limited to 'newlib/libm/math/ef_acosh.c')
-rw-r--r-- | newlib/libm/math/ef_acosh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/math/ef_acosh.c b/newlib/libm/math/ef_acosh.c index 37c788576..1119c2c86 100644 --- a/newlib/libm/math/ef_acosh.c +++ b/newlib/libm/math/ef_acosh.c @@ -37,7 +37,7 @@ ln2 = 6.9314718246e-01; /* 0x3f317218 */ if(hx<0x3f800000) { /* x < 1 */ return (x-x)/(x-x); } else if(hx >=0x4d800000) { /* x > 2**28 */ - if(hx >=0x7f800000) { /* x is inf of NaN */ + if(!FLT_UWORD_IS_FINITE(hx)) { /* x is inf of NaN */ return x+x; } else return __ieee754_logf(x)+ln2; /* acosh(huge)=log(2x) */ |