diff options
Diffstat (limited to 'libquadmath/math/coshq.c')
-rw-r--r-- | libquadmath/math/coshq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libquadmath/math/coshq.c b/libquadmath/math/coshq.c index 77f4b98338b..61397509527 100644 --- a/libquadmath/math/coshq.c +++ b/libquadmath/math/coshq.c @@ -76,10 +76,10 @@ coshq (__float128 x) /* |x| in [0,0.5*ln2], return 1+expm1l(|x|)^2/(2*expq(|x|)) */ if (ex < 0x3ffd62e4) /* 0.3465728759765625 */ { + if (ex < 0x3fb80000) /* |x| < 2^-116 */ + return one; /* cosh(tiny) = 1 */ t = expm1q (u.value); w = one + t; - if (ex < 0x3fb80000) /* |x| < 2^-116 */ - return w; /* cosh(tiny) = 1 */ return one + (t * t) / (w + w); } |