aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/ieee754/ldbl-128ibm/e_hypotl.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-11-22 14:57:22 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-11-22 14:57:22 +0000
commit8e27e3cc453849158e069dbed0eea7b8113ab8ff (patch)
tree4f4b8ecd14b90dc0f283fdc002d2cbef94cba7e2 /sysdeps/ieee754/ldbl-128ibm/e_hypotl.c
parentc9c0279bcb2bd0871e9a4affbab3244389de1353 (diff)
downloadglibc-8e27e3cc453849158e069dbed0eea7b8113ab8ff.zip
glibc-8e27e3cc453849158e069dbed0eea7b8113ab8ff.tar.gz
glibc-8e27e3cc453849158e069dbed0eea7b8113ab8ff.tar.bz2
Fix ldbl-128ibm hypotl inaccuracy for arguments with large ratio (bug 14868).
Diffstat (limited to 'sysdeps/ieee754/ldbl-128ibm/e_hypotl.c')
-rw-r--r--sysdeps/ieee754/ldbl-128ibm/e_hypotl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm/e_hypotl.c b/sysdeps/ieee754/ldbl-128ibm/e_hypotl.c
index 00bfb15..ce21194 100644
--- a/sysdeps/ieee754/ldbl-128ibm/e_hypotl.c
+++ b/sysdeps/ieee754/ldbl-128ibm/e_hypotl.c
@@ -61,7 +61,7 @@ __ieee754_hypotl(long double x, long double y)
if(hb > ha) {a=y;b=x;j=ha; ha=hb;hb=j;} else {a=x;b=y;}
a = fabsl(a); /* a <- |a| */
b = fabsl(b); /* b <- |b| */
- if((ha-hb)>0x3c0000000000000LL) {return a+b;} /* x/y > 2**60 */
+ if((ha-hb)>0x780000000000000LL) {return a+b;} /* x/y > 2**120 */
k=0;
kld = 1.0L;
if(ha > 0x5f30000000000000LL) { /* a>2**500 */