about summary refs log tree commit diff
path: root/sysdeps/ieee754
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-01-11 16:38:40 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-01-11 16:56:33 -0300
commitbf7db6d369d7366ffe3ebcf3c2810139b0195517 (patch)
tree2e43c313c8ac5dd473dc5d9b10062529961cd917 /sysdeps/ieee754
parent4dddd7e9cbecad4aa03ee5a9b9edb596e3d4e909 (diff)
downloadglibc-bf7db6d369d7366ffe3ebcf3c2810139b0195517.tar.gz
glibc-bf7db6d369d7366ffe3ebcf3c2810139b0195517.tar.xz
glibc-bf7db6d369d7366ffe3ebcf3c2810139b0195517.zip
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.
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r--sysdeps/ieee754/dbl-64/e_cosh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/ieee754/dbl-64/e_cosh.c b/sysdeps/ieee754/dbl-64/e_cosh.c
index 4f41ca2c92..81de5ae6bd 100644
--- a/sysdeps/ieee754/dbl-64/e_cosh.c
+++ b/sysdeps/ieee754/dbl-64/e_cosh.c
@@ -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)