[Bug math/20153] [ldbl-128ibm] sqrtl (sNaN) returns sNaN
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Thu May 26 22:59:00 GMT 2016
https://sourceware.org/bugzilla/show_bug.cgi?id=20153
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 98c9c9d9ca6c1eb8e30fe449b1e1121b8c498715 (commit)
from d73e7bdb3a9284eb437b6cd84923658e25f922f2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=98c9c9d9ca6c1eb8e30fe449b1e1121b8c498715
commit 98c9c9d9ca6c1eb8e30fe449b1e1121b8c498715
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu May 26 22:58:36 2016 +0000
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.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c | 8 +++-----
2 files changed, 7 insertions(+), 5 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list