From: Adhemerval Zanella Date: Mon, 11 Jan 2021 19:38:40 +0000 (-0300) Subject: math: Add BZ#18980 fix back on dbl-64 cosh X-Git-Tag: glibc-2.33~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf7db6d369d7366ffe3ebcf3c2810139b0195517;p=thirdparty%2Fglibc.git math: Add BZ#18980 fix back on dbl-64 cosh It is regression from 9e97f239eae1f2b1 (Remove dbl-64/wordsize-64 (part 2)) where is missed to add the BZ#18980 fix (9e97f239eae1f2b1). Checked on i686-linux-gnu. --- diff --git a/sysdeps/ieee754/dbl-64/e_cosh.c b/sysdeps/ieee754/dbl-64/e_cosh.c index 4f41ca2c92b..81de5ae6bd3 100644 --- a/sysdeps/ieee754/dbl-64/e_cosh.c +++ b/sysdeps/ieee754/dbl-64/e_cosh.c @@ -33,6 +33,7 @@ #include #include +#include #include static const double one = 1.0, half=0.5, huge = 1.0e300; @@ -80,6 +81,6 @@ __ieee754_cosh (double x) if(ix>=0x7ff00000) return x*x; /* |x| > overflowthresold, cosh(x) overflow */ - return huge*huge; + return math_narrow_eval (huge * huge); } libm_alias_finite (__ieee754_cosh, __cosh)