public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/lld] math: Add BZ#18980 fix back on dbl-64 cosh
@ 2021-01-18 21:41 Fangrui Song
0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-01-18 21:41 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bf7db6d369d7366ffe3ebcf3c2810139b0195517
commit bf7db6d369d7366ffe3ebcf3c2810139b0195517
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Jan 11 16:38:40 2021 -0300
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:
---
sysdeps/ieee754/dbl-64/e_cosh.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-18 21:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 21:41 [glibc/maskray/lld] math: Add BZ#18980 fix back on dbl-64 cosh Fangrui Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).