This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/20252] atan2 (sNaN, qNaN) fails to raise "invalid"
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 13 Jun 2016 21:44:24 +0000
- Subject: [Bug math/20252] atan2 (sNaN, qNaN) fails to raise "invalid"
- Auto-submitted: auto-generated
- References: <bug-20252-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20252
--- 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 a2ae1696f7c6cf269b3a734bce4d9d3620745854 (commit)
from 5e19c4347f484d5f5b44bf8317b38f8f2fd564c1 (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=a2ae1696f7c6cf269b3a734bce4d9d3620745854
commit a2ae1696f7c6cf269b3a734bce4d9d3620745854
Author: Joseph Myers <joseph@codesourcery.com>
Date: Mon Jun 13 21:43:22 2016 +0000
Fix dbl-64 atan2 (sNaN, qNaN) (bug 20252).
The dbl-64 implementation of atan2, passed arguments (sNaN, qNaN),
fails to raise the "invalid" exception. This patch fixes it to add
both arguments, rather than just adding the second argument to itself,
in the case where the second argument is a NaN (which is checked for
before checking for the first argument being a NaN). sNaN tests for
atan2 are added, along with some qNaN tests I noticed were missing but
should have been there by analogy with other tests present.
Tested for x86_64 and x86.
[BZ #20252]
* sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
arguments when second argument is a NaN.
* math/libm-test.inc (atan2_test_data): Add sNaN tests and more
qNaN tests.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++
math/libm-test.inc | 62 ++++++++++++++++++++++++++++++++++++++
sysdeps/ieee754/dbl-64/e_atan2.c | 2 +-
3 files changed, 69 insertions(+), 1 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.