X-Git-Url: http://nsz.repo.hu/git/?p=libm;a=blobdiff_plain;f=src%2Fmath%2Fsinh.c;h=935879c5e0eceeae1dde49e3a53bd8e092ab16b4;hp=5e037e550102359e274b92122a3939c51376b267;hb=25215b63b9aa93089a9a05d1cffc3784109228c6;hpb=7e71d459b4104aae67ad092172be295cc221e284 diff --git a/src/math/sinh.c b/src/math/sinh.c index 5e037e5..935879c 100644 --- a/src/math/sinh.c +++ b/src/math/sinh.c @@ -64,8 +64,7 @@ double sinh(double x) /* |x| in [log(maxdouble), overflowthresold] */ if (ix <= 0x408633CE) - // FIXME: 0.5 * 2.0 * huge == huge ? - 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;