1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-12 19:04:54 +03:00

math: Add BZ#18980 fix back on dbl-64 cosh

It is regression from 9e97f239ea (Remove dbl-64/wordsize-64
(part 2)) where is missed to add the BZ#18980 fix (9e97f239ea).

Checked on i686-linux-gnu.
This commit is contained in:
Adhemerval Zanella
2021-01-11 16:38:40 -03:00
parent 4dddd7e9cb
commit bf7db6d369

View File

@@ -33,6 +33,7 @@
#include <math.h>
#include <math_private.h>
#include <math-narrow-eval.h>
#include <libm-alias-finite.h>
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)