use __expo2 in sinh and cosh, move __cexp to cmath
[libm] / src / math / cosh.c
index 5b871db..5f38b27 100644 (file)
@@ -67,7 +67,7 @@ double cosh(double x)
 
        /* |x| in [log(maxdouble), overflowthresold] */
        if (ix <= 0x408633CE)
-               return __ldexp_exp(fabs(x), -1);
+               return __expo2(fabs(x));
 
        /* |x| > overflowthresold, cosh(x) overflow */
        return huge*huge;