use __expo2 in sinh and cosh, move __cexp to cmath
[libm] / src / math / coshf.c
index 6a0db52..9e87afc 100644 (file)
@@ -50,7 +50,7 @@ float coshf(float x)
 
        /* |x| in [log(maxfloat), overflowthresold] */
        if (ix <= 0x42b2d4fc)
-               return __ldexp_expf(fabsf(x), -1);
+               return __expo2f(fabsf(x));
 
        /* |x| > overflowthresold, cosh(x) overflow */
        return huge*huge;