diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-12-17 13:43:40 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-12-17 13:43:40 +0000 |
commit | 6432a5409c9faf2a2f562b782d40432d73cda4d8 (patch) | |
tree | 225ea2c6409bd0c1457f89beb60e22f91ab3bf8c /sysdeps/ieee754/dbl-64/e_hypot.c | |
parent | c88769dda4199d15267259fd3c9b986e6690a901 (diff) | |
download | glibc-6432a5409c9faf2a2f562b782d40432d73cda4d8.tar.gz glibc-6432a5409c9faf2a2f562b782d40432d73cda4d8.tar.xz glibc-6432a5409c9faf2a2f562b782d40432d73cda4d8.zip |
Fix dbl-64 hypot spurious underflows (bug 16314).
Diffstat (limited to 'sysdeps/ieee754/dbl-64/e_hypot.c')
-rw-r--r-- | sysdeps/ieee754/dbl-64/e_hypot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/dbl-64/e_hypot.c b/sysdeps/ieee754/dbl-64/e_hypot.c index 500658d076..88242bc4f6 100644 --- a/sysdeps/ieee754/dbl-64/e_hypot.c +++ b/sysdeps/ieee754/dbl-64/e_hypot.c @@ -89,7 +89,7 @@ __ieee754_hypot (double x, double y) SET_HIGH_WORD (a, ha); SET_HIGH_WORD (b, hb); } - if (__builtin_expect (hb < 0x20b00000, 0)) /* b < 2**-500 */ + if (__builtin_expect (hb < 0x23d00000, 0)) /* b < 2**-450 */ { if (hb <= 0x000fffff) /* subnormal b or 0 */ { |