public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/18823] New: csqrt spurious underflows
@ 2015-08-13 23:04 jsm28 at gcc dot gnu.org
2015-08-17 23:04 ` [Bug math/18823] " cvs-commit at gcc dot gnu.org
2015-08-17 23:05 ` jsm28 at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-13 23:04 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=18823
Bug ID: 18823
Summary: csqrt spurious underflows
Product: glibc
Version: 2.22
Status: NEW
Severity: normal
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: jsm28 at gcc dot gnu.org
Target Milestone: ---
csqrt functions can produce spurious underflow exceptions. E.g., for float on
x86_64:
Failure: Real part of: csqrt (0x8p-152 + 0x5.70b56p-128 i): Exception
"Underflow" set
--
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/18823] csqrt spurious underflows
2015-08-13 23:04 [Bug math/18823] New: csqrt spurious underflows jsm28 at gcc dot gnu.org
@ 2015-08-17 23:04 ` cvs-commit at gcc dot gnu.org
2015-08-17 23:05 ` jsm28 at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-08-17 23:04 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=18823
--- 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 3fb4cfaf1f1e8d58312720c70d224e2050d469fc (commit)
from 1e15a853ed43e9f71cbec6d36e016d31b0d238a1 (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=3fb4cfaf1f1e8d58312720c70d224e2050d469fc
commit 3fb4cfaf1f1e8d58312720c70d224e2050d469fc
Author: Joseph Myers <joseph@codesourcery.com>
Date: Mon Aug 17 23:02:54 2015 +0000
Fix csqrt spurious underflows (bug 18823).
The csqrt functions scale up small arguments to avoid underflows when
calling hypot functions. However, even when hypot does not underflow,
a subsequent calculation of 0.5 * hypot can underflow. This patch
duly increases the threshold and scale factor to avoid such underflows
as well.
Tested for x86_64, x86 and mips64.
[BZ #18823]
* math/s_csqrt.c (__csqrt): Increase threshold and scale factor
for scaling up small arguments.
* math/s_csqrtf.c (__csqrtf): Likewise.
* math/s_csqrtl.c (__csqrtl): Likewise.
* math/auto-libm-test-in: Add more tests of csqrt.
* math/auto-libm-test-out: Regenerated.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 +
NEWS | 2 +-
math/auto-libm-test-in | 9 +
math/auto-libm-test-out | 1832 +++++++++++++++++++++++++++++++++++++++++++++++
math/s_csqrt.c | 6 +-
math/s_csqrtf.c | 6 +-
math/s_csqrtl.c | 6 +-
7 files changed, 1861 insertions(+), 10 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/18823] csqrt spurious underflows
2015-08-13 23:04 [Bug math/18823] New: csqrt spurious underflows jsm28 at gcc dot gnu.org
2015-08-17 23:04 ` [Bug math/18823] " cvs-commit at gcc dot gnu.org
@ 2015-08-17 23:05 ` jsm28 at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-17 23:05 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=18823
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |2.23
--- Comment #2 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Fixed for 2.23.
--
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-08-17 23:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-13 23:04 [Bug math/18823] New: csqrt spurious underflows jsm28 at gcc dot gnu.org
2015-08-17 23:04 ` [Bug math/18823] " cvs-commit at gcc dot gnu.org
2015-08-17 23:05 ` 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).