This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/17118] ctanh(INFINITY + 2 * I) returns incorrect value
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 17 Sep 2015 21:22:37 +0000
- Subject: [Bug math/17118] ctanh(INFINITY + 2 * I) returns incorrect value
- Auto-submitted: auto-generated
- References: <bug-17118-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17118
--- 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 61f893789862db1dfdf188f77cd215bab0814d2c (commit)
from b8682397ab2db1aed7f25d0a0c7c81134a97c8c7 (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=61f893789862db1dfdf188f77cd215bab0814d2c
commit 61f893789862db1dfdf188f77cd215bab0814d2c
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu Sep 17 21:21:39 2015 +0000
Fix sign of zero part from ctan / ctanh when argument infinite (bug 17118).
C99/C11 Annex G specifies the sign of the zero part of the result of
ctan (x +/- i * Inf) and ctanh (+/-Inf + i * y). This patch fixes glibc
to follow that specification, along the lines I described in my review
of Andreas's previous patch for this issue
<https://sourceware.org/ml/libc-alpha/2014-08/msg00142.html>.
Tested for x86_64.
2015-09-17 Joseph Myers <joseph@codesourcery.com>
Andreas Schwab <schwab@suse.de>
[BZ #17118]
* math/s_ctan.c (__ctan): Determine sign of zero real part of
result when imaginary part of argument is infinite using sine and
cosine.
* math/s_ctanf.c (__ctanf): Likewise.
* math/s_ctanl.c (__ctanl): Likewise.
* math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
of result when real part of argument is infinite using sine and
cosine.
* math/s_ctanhf.c (__ctanhf): Likewise.
* math/s_ctanhl.c (__ctanhl): Likewise.
* math/libm-test.inc (ctan_test_data): Add more tests of ctan.
(ctanh_test_data): Add more tests of ctanh.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 17 +++++++
NEWS | 10 ++--
math/libm-test.inc | 128 ++++++++++++++++++++++++++++++++++++++++++++++++++++
math/s_ctan.c | 9 +++-
math/s_ctanf.c | 9 +++-
math/s_ctanh.c | 9 +++-
math/s_ctanhf.c | 9 +++-
math/s_ctanhl.c | 9 +++-
math/s_ctanl.c | 9 +++-
9 files changed, 198 insertions(+), 11 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.