This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/22568] [DR#471] ctanh (0 + iNaN), ctanh (0 + i Inf)
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 07 Dec 2017 16:21:50 +0000
- Subject: [Bug math/22568] [DR#471] ctanh (0 + iNaN), ctanh (0 + i Inf)
- Auto-submitted: auto-generated
- References: <bug-22568-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22568
--- Comment #2 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 d15e83c5f5231d971472b5ffc9219d54056ca0f1 (commit)
from d89756ebe1905c1989179c2f1c2b10ef2fb3354e (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=d15e83c5f5231d971472b5ffc9219d54056ca0f1
commit d15e83c5f5231d971472b5ffc9219d54056ca0f1
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu Dec 7 16:21:00 2017 +0000
Fix ctanh (0 + i NaN), ctanh (0 + i Inf) (bug 22568, DR#471).
As per C11 DR#471, ctanh (0 + i NaN) and ctanh (0 + i Inf) should
return 0 + i NaN (with "invalid" exception in the second case but not
the first), not NaN + i NaN. This has corresponding implications for
ctan since its special cases are defined by ctan (z) = -i ctanh (iz).
This patch implements these cases for ctanh and ctan, updating
tests accordingly.
Tested for x86_64.
[BZ #22568]
* math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
part of result to imaginary part of argument if it is zero and the
real part of the argument is not finite.
* math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
of result to real part of argument if it is zero and the imaginary
part of the argument is not finite.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 ++++++++++
math/libm-test-ctan.inc | 12 ++++++------
math/libm-test-ctanh.inc | 12 ++++++------
math/s_ctan_template.c | 5 ++++-
math/s_ctanh_template.c | 5 ++++-
5 files changed, 30 insertions(+), 14 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.