This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/16564] Bad overflowing log1p results


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

--- 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  1a84c3d6d4bc43c92b6531b09d732e2e9c750dea (commit)
      from  01dbacd22a8d5e0053f8d0cf13a80286b6cfe79b (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=1a84c3d6d4bc43c92b6531b09d732e2e9c750dea

commit 1a84c3d6d4bc43c92b6531b09d732e2e9c750dea
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed May 14 12:38:56 2014 +0000

    Fix log1pl (LDBL_MAX) in FE_UPWARD mode (bug 16564).

    Bug 16564 is spurious overflow of log1pl (LDBL_MAX) in FE_UPWARD mode,
    resulting from log1pl adding 1 to its argument (for arguments not
    close to 0), which overflows in that mode.  This patch fixes this by
    avoiding adding 1 to large arguments (precisely what counts as large
    depends on the floating-point format).

    Tested x86_64 and x86, and spot-checked log1pl tests on mips64 and
    powerpc64.

        [BZ #16564]
        * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
        arguments with exponent 65 or above.
        * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
        arguments 0x1p113L or above.
        * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
        to arguments 0x1p107L or above.
        * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
        positive arguments with exponent 65 or above.
        * math/auto-libm-test-in: Add more tests of log1p.
        * math/auto-libm-test-out: Regenerated.

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

Summary of changes:
 ChangeLog                              |   12 ++
 NEWS                                   |   14 +-
 math/auto-libm-test-in                 |    8 +
 math/auto-libm-test-out                |  264 ++++++++++++++++++++++++++++++++
 sysdeps/i386/fpu/s_log1pl.S            |    7 +-
 sysdeps/ieee754/ldbl-128/s_log1pl.c    |    5 +-
 sysdeps/ieee754/ldbl-128ibm/s_log1pl.c |    5 +-
 sysdeps/x86_64/fpu/s_log1pl.S          |    7 +-
 8 files changed, 311 insertions(+), 11 deletions(-)

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]