public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/16287] New: ldbl-128 erfl spurious underflows
@ 2013-12-03  1:04 jsm28 at gcc dot gnu.org
  2014-06-13 11:49 ` [Bug math/16287] " fweimer at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2013-12-03  1:04 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 16287
           Summary: ldbl-128 erfl spurious underflows
           Product: glibc
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org

This bug report is from inspection of the ldbl-128 s_erfl.c, not from runtime
testing.  erfl is implemented to call __erfcl for arguments with absolute value
at least 1.0.  For large arguments where __erfcl underflows, this will result
in spurious exceptions when the result of erfl is very close to 1 and doesn't
underflow itself.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug math/16287] ldbl-128 erfl spurious underflows
  2013-12-03  1:04 [Bug math/16287] New: ldbl-128 erfl spurious underflows jsm28 at gcc dot gnu.org
@ 2014-06-13 11:49 ` fweimer at redhat dot com
  2014-06-24 20:58 ` jsm28 at gcc dot gnu.org
  2014-06-24 20:58 ` cvs-commit at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 11:49 UTC (permalink / raw)
  To: glibc-bugs

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

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

* [Bug math/16287] ldbl-128 erfl spurious underflows
  2013-12-03  1:04 [Bug math/16287] New: ldbl-128 erfl spurious underflows jsm28 at gcc dot gnu.org
  2014-06-13 11:49 ` [Bug math/16287] " fweimer at redhat dot com
@ 2014-06-24 20:58 ` jsm28 at gcc dot gnu.org
  2014-06-24 20:58 ` cvs-commit at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-06-24 20:58 UTC (permalink / raw)
  To: glibc-bugs

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

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.20.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug math/16287] ldbl-128 erfl spurious underflows
  2013-12-03  1:04 [Bug math/16287] New: ldbl-128 erfl spurious underflows jsm28 at gcc dot gnu.org
  2014-06-13 11:49 ` [Bug math/16287] " fweimer at redhat dot com
  2014-06-24 20:58 ` jsm28 at gcc dot gnu.org
@ 2014-06-24 20:58 ` cvs-commit at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2014-06-24 20:58 UTC (permalink / raw)
  To: glibc-bugs

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

--- 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  e7dd3c8c1db8c6d293abb995e033893b7328ad19 (commit)
      from  0ea5d373c7984a1da2d0e990c6e78e6d6c24f91b (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=e7dd3c8c1db8c6d293abb995e033893b7328ad19

commit e7dd3c8c1db8c6d293abb995e033893b7328ad19
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Jun 24 20:56:56 2014 +0000

    Fix ldbl-128 erfl spurious underflows (bug 16287).

    This patch fixes bug 16287, spurious underflows from ldbl-128 erfl
    arising from it calling erfcl for arguments with absolute value at
    least 1.0, although for large positive arguments erfcl correctly
    underflows but erfl shouldn't.  The fix is simply to avoid calling
    erfcl, and just return 1, for arguments above a cut-off large enough
    that erfl correctly rounds to-nearest as 1 but not so large that erfcl
    underflows.

    Tested mips64.  Also tested x86_64 and x86 to confirm the new tests
    (taken from the tests of erfc) don't cause any problems there; no ulps
    updates needed.

        [BZ #16287]
        * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
        calling __erfcl for arguments at least 16.
        * math/auto-libm-test-in: Add more tests of erf.
        * math/auto-libm-test-out: Regenerated.

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

Summary of changes:
 ChangeLog                         |    6 +
 NEWS                              |   24 ++--
 math/auto-libm-test-in            |   10 ++
 math/auto-libm-test-out           |  294 +++++++++++++++++++++++++++++++++++++
 sysdeps/ieee754/ldbl-128/s_erfl.c |    2 +
 5 files changed, 324 insertions(+), 12 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-24 20:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-03  1:04 [Bug math/16287] New: ldbl-128 erfl spurious underflows jsm28 at gcc dot gnu.org
2014-06-13 11:49 ` [Bug math/16287] " fweimer at redhat dot com
2014-06-24 20:58 ` jsm28 at gcc dot gnu.org
2014-06-24 20:58 ` cvs-commit 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).