This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/20224] [i386] cbrtl (sNaN) returns sNaN
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 08 Jun 2016 21:03:45 +0000
- Subject: [Bug math/20224] [i386] cbrtl (sNaN) returns sNaN
- Auto-submitted: auto-generated
- References: <bug-20224-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20224
--- 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 40720ec9f98d57214d73d6fa98019e684f2eb45a (commit)
from c867597bff2562180a18da4b8dba89d24e8b65c4 (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=40720ec9f98d57214d73d6fa98019e684f2eb45a
commit 40720ec9f98d57214d73d6fa98019e684f2eb45a
Author: Joseph Myers <joseph@codesourcery.com>
Date: Wed Jun 8 21:02:40 2016 +0000
Fix i386 cbrtl (sNaN) (bug 20224).
The i386 version of cbrtl returns sNaN (without raising any
exceptions) for sNaN input. This patch fixes it to add non-finite
arguments to themselves (the code path in question is also reached for
zero arguments, for which adding them to themselves is also harmless),
so that "invalid" is raised and qNaN returned.
Tested for x86_64 and x86.
[BZ #20224]
* sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
argument to itself.
* math/libm-test.inc (cbrt_test_data): Add sNaN tests.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
math/libm-test.inc | 2 ++
sysdeps/i386/fpu/s_cbrtl.S | 1 +
3 files changed, 10 insertions(+), 0 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.