This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/18046] [ldbl-96] atanhl inaccurate
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 27 Feb 2015 17:49:45 +0000
- Subject: [Bug math/18046] [ldbl-96] atanhl inaccurate
- Auto-submitted: auto-generated
- References: <bug-18046-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18046
--- 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 2ca725c594e0c186d928dc0823be7d8b5976112c (commit)
from af96be34825586536ebcfbf5c675e795ddd3c8fa (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=2ca725c594e0c186d928dc0823be7d8b5976112c
commit 2ca725c594e0c186d928dc0823be7d8b5976112c
Author: Joseph Myers <joseph@codesourcery.com>
Date: Fri Feb 27 17:48:37 2015 +0000
Fix ldbl-96, ldbl-128ibm atanhl inaccuracy (bug 18046, bug 18047).
The threshold in ldbl-96 atanhl for when to return the argument,
0x1p-28, is a bit too big, and that in ldbl-128ibm atanhl is much too
big (the relevant condition being x^3/3 being < 0.5ulp of x),
resulting in errors a bit above the limits of those considered
acceptable in glibc in the ldbl-96 case, and in large errors in the
ldbl-128ibm case. This patch changes those implementations to use
more appropriate thresholds and adds tests around the thresholds for
various formats.
Tested for x86_64, x86 and powerpc. x86_64 and x86 ulps updated
accordingly.
[BZ #18046]
[BZ #18047]
* sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
0x1p-56L as threshold for just returning the argument.
* sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
0x1p-32L as threshold for just returning the argument.
* math/auto-libm-test-in: Add more tests of atanh.
* math/auto-libm-test-out: Regenerated.
* sysdeps/i386/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 13 +
NEWS | 3 +-
math/auto-libm-test-in | 31 ++
math/auto-libm-test-out | 875 ++++++++++++++++++++++++++++++++
sysdeps/i386/fpu/libm-test-ulps | 2 +
sysdeps/ieee754/ldbl-128ibm/e_atanhl.c | 2 +-
sysdeps/ieee754/ldbl-96/e_atanhl.c | 4 +-
sysdeps/x86_64/fpu/libm-test-ulps | 4 +
8 files changed, 930 insertions(+), 4 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.