public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/16526] New: Missing underflow exception from sincos
@ 2014-02-04 20:39 zimmerma+gcc at loria dot fr
2014-02-07 7:38 ` [Bug math/16526] " zimmerma+gcc at loria dot fr
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2014-02-04 20:39 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16526
Bug ID: 16526
Summary: Missing underflow exception from sincos
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: zimmerma+gcc at loria dot fr
on x86_64 we get (where sincos1 compute the sine using the sincos function):
Testing function sincos1 for exponent 0 [seed=1823].
rounding mode MPFR_RNDN:
wrong underflow flag for x=4.0000000000000@-269
library gives 4.0000000000000@-269
mpfr gives 4.0000000000000@-269
underflow: mpfr 1, library 0
Since 4.0000000000000@-269 = 0x1p-1074 is the smallest subnormal, an underflow
exception should be raised.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/16526] Missing underflow exception from sincos
2014-02-04 20:39 [Bug math/16526] New: Missing underflow exception from sincos zimmerma+gcc at loria dot fr
@ 2014-02-07 7:38 ` zimmerma+gcc at loria dot fr
2014-06-13 8:45 ` fweimer at redhat dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2014-02-07 7:38 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16526
--- Comment #1 from Paul Zimmermann <zimmerma+gcc at loria dot fr> ---
same in extended precision:
Testing function sincos1 for exponent 0 [seed=8344].
rounding mode MPFR_RNDN:
wrong underflow flag for x=-8.0000000000000000@-4112
library gives -8.0000000000000000@-4112
mpfr gives -8.0000000000000000@-4112
underflow: mpfr 1, library 0
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/16526] Missing underflow exception from sincos
2014-02-04 20:39 [Bug math/16526] New: Missing underflow exception from sincos zimmerma+gcc at loria dot fr
2014-02-07 7:38 ` [Bug math/16526] " zimmerma+gcc at loria dot fr
@ 2014-06-13 8:45 ` fweimer at redhat dot com
2014-06-13 8:46 ` fweimer at redhat dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 8:45 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16526
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fweimer at redhat dot com
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/16526] Missing underflow exception from sincos
2014-02-04 20:39 [Bug math/16526] New: Missing underflow exception from sincos zimmerma+gcc at loria dot fr
2014-02-07 7:38 ` [Bug math/16526] " zimmerma+gcc at loria dot fr
2014-06-13 8:45 ` fweimer at redhat dot com
@ 2014-06-13 8:46 ` fweimer at redhat dot com
2015-06-23 22:25 ` cvs-commit at gcc dot gnu.org
2015-06-23 22:26 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 8:46 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16526
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|fweimer at redhat dot com |
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/16526] Missing underflow exception from sincos
2014-02-04 20:39 [Bug math/16526] New: Missing underflow exception from sincos zimmerma+gcc at loria dot fr
` (2 preceding siblings ...)
2014-06-13 8:46 ` fweimer at redhat dot com
@ 2015-06-23 22:25 ` cvs-commit at gcc dot gnu.org
2015-06-23 22:26 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-06-23 22:25 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16526
--- 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 ad39cce0da0161dba69781c53349acf2e23f156c (commit)
from 8b1bab5ffa235bc494c33fdbe4c9994202936cfc (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=ad39cce0da0161dba69781c53349acf2e23f156c
commit ad39cce0da0161dba69781c53349acf2e23f156c
Author: Joseph Myers <joseph@codesourcery.com>
Date: Tue Jun 23 22:24:20 2015 +0000
Fix sin, sincos missing underflows (bug 16526, bug 16538).
Similar to various other bugs in this area, some sin and sincos
implementations do not raise the underflow exception for subnormal
arguments, when the result is tiny and inexact. This patch forces the
exception in a similar way to previous fixes.
Tested for x86_64, x86, mips64 and powerpc.
[BZ #16526]
[BZ #16538]
* sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
(__sin): Force underflow exception for arguments with small
absolute value.
* sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
(__kernel_sinf): Force underflow exception for arguments with
small absolute value.
* sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
(__kernel_sincosl): Force underflow exception for arguments with
small absolute value.
* sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
(__kernel_sinl): Force underflow exception for arguments with
small absolute value.
* sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
(__kernel_sincosl): Force underflow exception for arguments with
small absolute value.
* sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
(__kernel_sinl): Force underflow exception for arguments with
small absolute value.
* sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
(__kernel_sinl): Force underflow exception for arguments with
small absolute value.
* sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
(__kernel_sinf): Force underflow exception for arguments with
small absolute value.
* math/auto-libm-test-in: Add more tests of sin and sincos.
* math/auto-libm-test-out: Regenerated.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 29 ++
NEWS | 28 +-
math/auto-libm-test-in | 8 +
math/auto-libm-test-out | 632 +++++++++++++++++++++++++++++++
sysdeps/ieee754/dbl-64/s_sin.c | 10 +-
sysdeps/ieee754/flt-32/k_sinf.c | 11 +-
sysdeps/ieee754/ldbl-128/k_sincosl.c | 20 +-
sysdeps/ieee754/ldbl-128/k_sinl.c | 10 +-
sysdeps/ieee754/ldbl-128ibm/k_sincosl.c | 20 +-
sysdeps/ieee754/ldbl-128ibm/k_sinl.c | 10 +-
sysdeps/ieee754/ldbl-96/k_sinl.c | 10 +-
sysdeps/powerpc/fpu/k_sinf.c | 6 +-
12 files changed, 762 insertions(+), 32 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug math/16526] Missing underflow exception from sincos
2014-02-04 20:39 [Bug math/16526] New: Missing underflow exception from sincos zimmerma+gcc at loria dot fr
` (3 preceding siblings ...)
2015-06-23 22:25 ` cvs-commit at gcc dot gnu.org
@ 2015-06-23 22:26 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-06-23 22:26 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16526
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 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] 6+ messages in thread
end of thread, other threads:[~2015-06-23 22:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-04 20:39 [Bug math/16526] New: Missing underflow exception from sincos zimmerma+gcc at loria dot fr
2014-02-07 7:38 ` [Bug math/16526] " zimmerma+gcc at loria dot fr
2014-06-13 8:45 ` fweimer at redhat dot com
2014-06-13 8:46 ` fweimer at redhat dot com
2015-06-23 22:25 ` cvs-commit at gcc dot gnu.org
2015-06-23 22:26 ` 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).