aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/ieee754/ldbl-128ibm/e_sinhl.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-12-09 22:37:08 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-12-09 22:37:08 +0000
commitf517e06ab71e07b24bf085063b0ba2d072da4a56 (patch)
tree69f4238e386230177b71657313b11843cfe706fe /sysdeps/ieee754/ldbl-128ibm/e_sinhl.c
parentca2fcac629b9b7781ccd52685b28741d89ff128f (diff)
downloadglibc-f517e06ab71e07b24bf085063b0ba2d072da4a56.zip
glibc-f517e06ab71e07b24bf085063b0ba2d072da4a56.tar.gz
glibc-f517e06ab71e07b24bf085063b0ba2d072da4a56.tar.bz2
Fix ldbl-128ibm sinhl spurious overflows (bug 19350).
The ldbl-128ibm implementation of sinhl uses a slightly too small overflow threshold (similar to bug 16407 for coshl). This patch fixes it to use a safe threshold (so that values whose high part is above the value compared with definitely result in an overflow in all rounding modes). Tested for powerpc. [BZ #19350] * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Increase overflow threshold.
Diffstat (limited to 'sysdeps/ieee754/ldbl-128ibm/e_sinhl.c')
-rw-r--r--sysdeps/ieee754/ldbl-128ibm/e_sinhl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm/e_sinhl.c b/sysdeps/ieee754/ldbl-128ibm/e_sinhl.c
index 29700ad..67d9d24 100644
--- a/sysdeps/ieee754/ldbl-128ibm/e_sinhl.c
+++ b/sysdeps/ieee754/ldbl-128ibm/e_sinhl.c
@@ -67,7 +67,7 @@ __ieee754_sinhl(long double x)
if (ix < 0x40862e42fefa39efLL) return h*__ieee754_expl(fabsl(x));
/* |x| in [log(maxdouble), overflowthresold] */
- if (ix <= 0x408633ce8fb9f87dLL) {
+ if (ix <= 0x408633ce8fb9f87eLL) {
w = __ieee754_expl(0.5*fabsl(x));
t = h*w;
return t*w;