public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/18196] New: atanf spurious underflows
@ 2015-04-02 23:31 jsm28 at gcc dot gnu.org
2015-05-14 23:52 ` [Bug math/18196] " cvs-commit at gcc dot gnu.org
2015-05-14 23:52 ` jsm28 at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-04-02 23:31 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=18196
Bug ID: 18196
Summary: atanf spurious underflows
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 sysdeps/ieee754/flt-32 version of atanf produces spurious underflow
exceptions for some large arguments. For example, on x86_64, atanf (0x1p31f)
(whose result is very close to pi/2) produces such an exception.
--
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/18196] atanf spurious underflows
2015-04-02 23:31 [Bug math/18196] New: atanf spurious underflows jsm28 at gcc dot gnu.org
2015-05-14 23:52 ` [Bug math/18196] " cvs-commit at gcc dot gnu.org
@ 2015-05-14 23:52 ` jsm28 at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-05-14 23:52 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=18196
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
* [Bug math/18196] atanf spurious underflows
2015-04-02 23:31 [Bug math/18196] New: atanf spurious underflows jsm28 at gcc dot gnu.org
@ 2015-05-14 23:52 ` cvs-commit at gcc dot gnu.org
2015-05-14 23:52 ` jsm28 at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-05-14 23:52 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=18196
--- 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 9a71f1fcf53615c00b5f9e5da4bba92bccb0efb4 (commit)
from 0b7a5f920163d03806d7c5d9d1c83b16942c9496 (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=9a71f1fcf53615c00b5f9e5da4bba92bccb0efb4
commit 9a71f1fcf53615c00b5f9e5da4bba92bccb0efb4
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu May 14 23:51:09 2015 +0000
Fix atanf spurious underflows (bug 18196).
The sysdeps/ieee754/flt-32 version of atanf produces spurious
underflow exceptions for some large arguments, because of computations
that compute x^-4. This patch fixes this by adjusting the threshold
for large arguments (for which +/- pi/2 can just be returned, the
correct result being roughly +/- pi/2 - 1/x) from 2^34 to 2^25.
Tested for x86_64 and x86.
[BZ #18196]
* sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
threshold for large arguments.
* math/auto-libm-test-in: Add another test of atan.
* math/auto-libm-test-out: Regenerated.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
NEWS | 4 ++--
math/auto-libm-test-in | 1 +
math/auto-libm-test-out | 25 +++++++++++++++++++++++++
sysdeps/ieee754/flt-32/s_atanf.c | 2 +-
5 files changed, 35 insertions(+), 3 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
end of thread, other threads:[~2015-05-14 23:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-02 23:31 [Bug math/18196] New: atanf spurious underflows jsm28 at gcc dot gnu.org
2015-05-14 23:52 ` [Bug math/18196] " cvs-commit at gcc dot gnu.org
2015-05-14 23:52 ` 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).