public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/16519] New: Missing underflow exception from sinhf
@ 2014-02-01  9:13 zimmerma+gcc at loria dot fr
  2014-02-02 20:48 ` [Bug math/16519] " 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-01  9:13 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16519

            Bug ID: 16519
           Summary: Missing underflow exception from sinhf
           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

Created attachment 7383
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7383&action=edit
test program

on x86_64 with the attached program I get:

GNU libc version: 2.18.90
GNU libc release: development
x=0x1.4p-146 (1.401298464e-44)
libc: sinhf(x)=0x1.4p-146 (1.401298464e-44) underflow=0
mpfr: sinhf(x)=0x1.4p-146 (1.401298464e-44)
ulp difference: 0.000000

The result 0x1.4p-146 is smaller than the smallest normal number, thus the
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/16519] Missing underflow exception from sinhf
  2014-02-01  9:13 [Bug math/16519] New: Missing underflow exception from sinhf zimmerma+gcc at loria dot fr
@ 2014-02-02 20:48 ` zimmerma+gcc at loria dot fr
  2014-02-07  7:44 ` zimmerma+gcc at loria dot fr
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2014-02-02 20:48 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16519

--- Comment #1 from Paul Zimmermann <zimmerma+gcc at loria dot fr> ---
same in double precision with sinh(0x1p-1074) on x86_64

-- 
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/16519] Missing underflow exception from sinhf
  2014-02-01  9:13 [Bug math/16519] New: Missing underflow exception from sinhf zimmerma+gcc at loria dot fr
  2014-02-02 20:48 ` [Bug math/16519] " zimmerma+gcc at loria dot fr
@ 2014-02-07  7:44 ` zimmerma+gcc at loria dot fr
  2014-06-13  8:49 ` fweimer at redhat dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2014-02-07  7:44 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16519

--- Comment #2 from Paul Zimmermann <zimmerma+gcc at loria dot fr> ---
idem in extended precision:

Testing function sinh for exponent 0 [seed=8344].
 rounding mode MPFR_RNDN:
      wrong underflow flag for x=-1.8000000000000000@-4111
      library gives -1.8000000000000000@-4111
      mpfr    gives -1.8000000000000000@-4111
      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/16519] Missing underflow exception from sinhf
  2014-02-01  9:13 [Bug math/16519] New: Missing underflow exception from sinhf zimmerma+gcc at loria dot fr
  2014-02-02 20:48 ` [Bug math/16519] " zimmerma+gcc at loria dot fr
  2014-02-07  7:44 ` zimmerma+gcc at loria dot fr
@ 2014-06-13  8:49 ` fweimer at redhat dot com
  2015-08-06 23:02 ` cvs-commit at gcc dot gnu.org
  2015-08-06 23:03 ` jsm28 at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13  8:49 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16519

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              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/16519] Missing underflow exception from sinhf
  2014-02-01  9:13 [Bug math/16519] New: Missing underflow exception from sinhf zimmerma+gcc at loria dot fr
                   ` (2 preceding siblings ...)
  2014-06-13  8:49 ` fweimer at redhat dot com
@ 2015-08-06 23:02 ` cvs-commit at gcc dot gnu.org
  2015-08-06 23:03 ` jsm28 at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-08-06 23:02 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16519

--- Comment #3 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  5e29dd573777197fc4d12c1bdea8f6d04e505391 (commit)
      from  2ba30a182ca50ac07f45ed1f813a85ccafaed85d (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=5e29dd573777197fc4d12c1bdea8f6d04e505391

commit 5e29dd573777197fc4d12c1bdea8f6d04e505391
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Aug 6 23:01:09 2015 +0000

    Fix sinh missing underflows (bug 16519).

    Similar to various other bugs in this area, some sinh 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 #16519]
        * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
        (__ieee754_sinh): Force underflow exception for arguments with
        small absolute value.
        * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
        (__ieee754_sinhf): Force underflow exception for arguments with
        small absolute value.
        * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
        (__ieee754_sinhl): Force underflow exception for arguments with
        small absolute value.
        * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
        (__ieee754_sinhl): Force underflow exception for arguments with
        small absolute value.
        * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
        (__ieee754_sinhl): Force underflow exception for arguments with
        small absolute value.
        * math/auto-libm-test-in: Add more tests of sinh.
        * math/auto-libm-test-out: Regenerated.
        * sysdeps/i386/fpu/libm-test-ulps: Update.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                             |   22 +++
 NEWS                                  |    2 +-
 math/auto-libm-test-in                |    4 +
 math/auto-libm-test-out               |  316 +++++++++++++++++++++++++++++++++
 sysdeps/i386/fpu/libm-test-ulps       |    6 +
 sysdeps/ieee754/dbl-64/e_sinh.c       |   11 +-
 sysdeps/ieee754/flt-32/e_sinhf.c      |    9 +-
 sysdeps/ieee754/ldbl-128/e_sinhl.c    |   12 +-
 sysdeps/ieee754/ldbl-128ibm/e_sinhl.c |    9 +-
 sysdeps/ieee754/ldbl-96/e_sinhl.c     |    9 +-
 10 files changed, 392 insertions(+), 8 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/16519] Missing underflow exception from sinhf
  2014-02-01  9:13 [Bug math/16519] New: Missing underflow exception from sinhf zimmerma+gcc at loria dot fr
                   ` (3 preceding siblings ...)
  2015-08-06 23:02 ` cvs-commit at gcc dot gnu.org
@ 2015-08-06 23:03 ` jsm28 at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-06 23:03 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16519

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |2.23

--- Comment #4 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] 6+ messages in thread

end of thread, other threads:[~2015-08-06 23:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-01  9:13 [Bug math/16519] New: Missing underflow exception from sinhf zimmerma+gcc at loria dot fr
2014-02-02 20:48 ` [Bug math/16519] " zimmerma+gcc at loria dot fr
2014-02-07  7:44 ` zimmerma+gcc at loria dot fr
2014-06-13  8:49 ` fweimer at redhat dot com
2015-08-06 23:02 ` cvs-commit at gcc dot gnu.org
2015-08-06 23:03 ` 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).