(__ieee754_coshl): Fix overflow threshold constant
authordrepper <drepper>
Wed, 6 Jun 2001 12:52:49 +0000 (12:52 +0000)
committerdrepper <drepper>
Wed, 6 Jun 2001 12:52:49 +0000 (12:52 +0000)
(log(LDBL_MAX)+M_LN2l).

sysdeps/ieee754/ldbl-96/e_coshl.c

index 6af846c..8c38fa4 100644 (file)
@@ -79,16 +79,15 @@ static long double one = 1.0, half=0.5, huge = 1.0e4900L;
        if (ex < 0x400c || (ex == 0x400c && mx < 0xb1700000u))
                return half*__ieee754_expl(fabsl(x));
 
-    /* |x| in [log(maxdouble), overflowthresold] */
-       if (ex < 0x400d
-           || (ex == 0x400d && (mx < 0xb170b513u
-                                 || (mx == 0xb170b513u && lx < 0xa1dfd60cu))))
+    /* |x| in [log(maxdouble), log(2*maxdouble)) */
+       if (ex == 0x400c && (mx < 0xb174ddc0u
+                            || (mx == 0xb174ddc0u && lx < 0x31aec0ebu)))
        {
            w = __ieee754_expl(half*fabsl(x));
            t = half*w;
            return t*w;
        }
 
-    /* |x| > overflowthresold, cosh(x) overflow */
+    /* |x| >= log(2*maxdouble), cosh(x) overflow */
        return huge*huge;
 }