X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fcoshf.c;h=9e87afcd895ba1c7a5adbc6d28fb8470be0861ff;hb=3678e6f4bb3efec5f0c1a7c453f686c17fa9867d;hp=6a0db52703481512fac010e8b5a433cd102d2574;hpb=fc04675a09587031d5daebcb877b73976890b71d;p=libm diff --git a/src/math/coshf.c b/src/math/coshf.c index 6a0db52..9e87afc 100644 --- a/src/math/coshf.c +++ b/src/math/coshf.c @@ -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;