use __expo2 in sinh and cosh, move __cexp to cmath
[libm] / src / math / sinh.c
index 0972777..935879c 100644 (file)
@@ -64,7 +64,7 @@ double sinh(double x)
 
        /* |x| in [log(maxdouble), overflowthresold] */
        if (ix <= 0x408633CE)
-               return h*2.0*__ldexp_exp(fabs(x), -1);
+               return h * 2.0 * __expo2(fabs(x)); /* h is for sign only */
 
        /* |x| > overflowthresold, sinh(x) overflow */
        return x*huge;