public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/18020] New: [ldbl-128ibm] asinhl inaccurate
@ 2015-02-25 0:13 jsm28 at gcc dot gnu.org
2015-02-25 11:14 ` [Bug math/18020] " cvs-commit at gcc dot gnu.org
2015-02-25 11:17 ` jsm28 at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-02-25 0:13 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=18020
Bug ID: 18020
Summary: [ldbl-128ibm] asinhl inaccurate
Product: glibc
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: jsm28 at gcc dot gnu.org
The ldbl-128ibm implementation of asinhl uses cut-offs of 0x1p28 and 0x1p-29 to
determine when to use simpler formulas that avoid possible overflow /
underflow. Both those cut-offs are inappropriate for this format, resulting in
large errors, e.g.:
Failure: Test: asinh (0x2p+28)
Result:
is: 2.07944154167983592825e+01 0x1.4cb5ecf0a96504221a8bp+4
should be: 2.07944154167983592834e+01 0x1.4cb5ecf0a96504231a8bp+4
difference: 8.67361737988600762432e-19 0x1.00000000004000000000p-60
ulp : 2199023255552.5000
max.ulp : 1.0000
Failure: Test: asinh (0x4p-32)
Result:
is: 9.31322574615478515625e-10 0x1.00000000000000000000p-30
should be: 9.31322574615478515490e-10 0x1.fffffffffffffffaaaabp-31
difference: 1.34632261157723174603e-28 0x1.55555555556000000000p-93
ulp : 5864062014805.5000
max.ulp : 1.0000
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug math/18020] [ldbl-128ibm] asinhl inaccurate
2015-02-25 0:13 [Bug math/18020] New: [ldbl-128ibm] asinhl inaccurate jsm28 at gcc dot gnu.org
@ 2015-02-25 11:14 ` cvs-commit at gcc dot gnu.org
2015-02-25 11:17 ` jsm28 at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-02-25 11:14 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=18020
--- 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 137cef7d433407bd2ded8bcc5bea70e5858df47a (commit)
from cb43bb0d68f001fc3d6e054d712ab8794b5fd1de (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=137cef7d433407bd2ded8bcc5bea70e5858df47a
commit 137cef7d433407bd2ded8bcc5bea70e5858df47a
Author: Joseph Myers <joseph@codesourcery.com>
Date: Wed Feb 25 11:13:41 2015 +0000
Fix ldbl-128ibm asinhl inaccuracy (bug 18020).
The ldbl-128ibm implementation of asinhl uses cut-offs of 0x1p28 and
0x1p-29 to determine when to use simpler formulas that avoid possible
overflow / underflow. Both those cut-offs are inappropriate for this
format, resulting in large errors. This patch changes the code to use
more appropriate cut-offs of 0x1p56 and 0x1p-56, adding tests around
the cut-offs for various floating-point formats.
Tested for powerpc. Also tested for x86_64 and x86 and updated ulps.
[BZ #18020]
* sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
* math/auto-libm-test-in: Add more tests of asinh.
* math/auto-libm-test-out: Regenerated.
* sysdeps/i386/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 +
NEWS | 2 +-
math/auto-libm-test-in | 61 ++
math/auto-libm-test-out | 1685 ++++++++++++++++++++++++++++++++
sysdeps/i386/fpu/libm-test-ulps | 8 +-
sysdeps/ieee754/ldbl-128ibm/s_asinhl.c | 8 +-
sysdeps/x86_64/fpu/libm-test-ulps | 27 +-
7 files changed, 1779 insertions(+), 22 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug math/18020] [ldbl-128ibm] asinhl inaccurate
2015-02-25 0:13 [Bug math/18020] New: [ldbl-128ibm] asinhl inaccurate jsm28 at gcc dot gnu.org
2015-02-25 11:14 ` [Bug math/18020] " cvs-commit at gcc dot gnu.org
@ 2015-02-25 11:17 ` jsm28 at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-02-25 11:17 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=18020
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Fixed for 2.22.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-25 11:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-25 0:13 [Bug math/18020] New: [ldbl-128ibm] asinhl inaccurate jsm28 at gcc dot gnu.org
2015-02-25 11:14 ` [Bug math/18020] " cvs-commit at gcc dot gnu.org
2015-02-25 11:17 ` jsm28 at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).