about summary refs log tree commit diff
path: root/sysdeps/ieee754
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-05-24 20:52:55 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-05-24 20:52:55 +0000
commit0323d08657f111267efa47bd448fbf6cd76befe8 (patch)
tree7ebd164c7460e42866c7fe5e31ab9c4b556f23ab /sysdeps/ieee754
parentdd4259b9f76fa8fd3690a91608d2e3a94e2d6713 (diff)
downloadglibc-0323d08657f111267efa47bd448fbf6cd76befe8.tar.gz
glibc-0323d08657f111267efa47bd448fbf6cd76befe8.tar.xz
glibc-0323d08657f111267efa47bd448fbf6cd76befe8.zip
Fix ldbl-96 hypotl of subnormals (bug 15529).
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r--sysdeps/ieee754/ldbl-96/e_hypotl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/ldbl-96/e_hypotl.c b/sysdeps/ieee754/ldbl-96/e_hypotl.c
index 306f92924c..7895488848 100644
--- a/sysdeps/ieee754/ldbl-96/e_hypotl.c
+++ b/sysdeps/ieee754/ldbl-96/e_hypotl.c
@@ -85,7 +85,7 @@ long double __ieee754_hypotl(long double x, long double y)
 		u_int32_t high,low;
 		GET_LDOUBLE_WORDS(exp,high,low,b);
 		if((high|low)==0) return a;
-		SET_LDOUBLE_WORDS(t1, 0x7ffd, 0, 0);	/* t1=2^16382 */
+		SET_LDOUBLE_WORDS(t1, 0x7ffd, 0x80000000, 0); /* t1=2^16382 */
 		b *= t1;
 		a *= t1;
 		k -= 16382;