This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/20156] [ldbl-128ibm] ceill, rintl etc. return sNaN for sNaN argument
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 27 May 2016 14:00:32 +0000
- Subject: [Bug math/20156] [ldbl-128ibm] ceill, rintl etc. return sNaN for sNaN argument
- Auto-submitted: auto-generated
- References: <bug-20156-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20156
--- 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 bba14195895fa612a8ef484e9856127a1be4f80f (commit)
from 98c9c9d9ca6c1eb8e30fe449b1e1121b8c498715 (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=bba14195895fa612a8ef484e9856127a1be4f80f
commit bba14195895fa612a8ef484e9856127a1be4f80f
Author: Joseph Myers <joseph@codesourcery.com>
Date: Fri May 27 13:59:24 2016 +0000
Fix ldbl-128ibm ceill, rintl etc. for sNaN arguments (bug 20156).
The ldbl-128ibm implementations of ceill, floorl, roundl, truncl,
rintl and nearbyintl wrongly return an sNaN when given an sNaN
argument. This patch fixes them to add such an argument to itself to
turn it into a quiet NaN. (The code structure means this "else" case
applies to any argument which is zero or not finite; it's OK to do
this in all such cases.)
Tested for powerpc.
[BZ #20156]
* sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
to itself when zero or not finite.
* sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 ++++++++++
sysdeps/ieee754/ldbl-128ibm/s_ceill.c | 3 +++
sysdeps/ieee754/ldbl-128ibm/s_floorl.c | 3 +++
sysdeps/ieee754/ldbl-128ibm/s_rintl.c | 3 +++
sysdeps/ieee754/ldbl-128ibm/s_roundl.c | 3 +++
sysdeps/ieee754/ldbl-128ibm/s_truncl.c | 3 +++
6 files changed, 25 insertions(+), 0 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.