about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2016-05-26 22:58:36 +0000
committerJoseph Myers <joseph@codesourcery.com>2016-05-26 22:58:36 +0000
commit98c9c9d9ca6c1eb8e30fe449b1e1121b8c498715 (patch)
tree3d8ac5444e4c4bbe885f4ca0bd9327aa02d0a3b6 /ChangeLog
parentd73e7bdb3a9284eb437b6cd84923658e25f922f2 (diff)
downloadglibc-98c9c9d9ca6c1eb8e30fe449b1e1121b8c498715.tar.gz
glibc-98c9c9d9ca6c1eb8e30fe449b1e1121b8c498715.tar.xz
glibc-98c9c9d9ca6c1eb8e30fe449b1e1121b8c498715.zip
Fix ldbl-128ibm sqrtl (sNaN) (bug 20153).
The ldbl-128ibm implementation of sqrtl wrongly returns an sNaN for
signaling NaN arguments.  This patch fixes it to quiet its argument,
using the same x * x + x return for infinities and NaNs as the dbl-64
implementation uses to ensure that +Inf maps to +Inf while -Inf and
NaN map to NaN.

Tested for powerpc.

	[BZ #20153]
	* sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
	x * x + x for infinities and NaNs.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b597ce9643..2516304de3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
 
+	[BZ #20153]
+	* sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
+	x * x + x for infinities and NaNs.
+
 	[BZ #20151]
 	* sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
 	argument to itself before returning result.