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/20205] [i386/x86_64] nextafterl incorrect incrementing negative subnormals


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

--- 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  8cbd1453ec1c59e54652edcd88256f4023ff77b9 (commit)
      from  cfac4de69cc70fbd6364e58cf77891a7a30f2e09 (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=8cbd1453ec1c59e54652edcd88256f4023ff77b9

commit 8cbd1453ec1c59e54652edcd88256f4023ff77b9
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Jun 3 21:30:12 2016 +0000

    Fix x86/x86_64 nextafterl incrementing negative subnormals (bug 20205).

    The x86 / x86_64 implementation of nextafterl (also used for
    nexttowardl) produces incorrect results (NaNs) when negative
    subnormals, the low 32 bits of whose mantissa are zero, are
    incremented towards zero.  This patch fixes this by disabling the
    logic to decrement the exponent in that case.

    Tested for x86_64 and x86.

        [BZ #20205]
        * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
        exponent when incrementing negative subnormal with low mantissa
        word zero.
        * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
        Add another test.

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

Summary of changes:
 ChangeLog                       |    9 +++++++++
 math/libm-test.inc              |    4 ++++
 sysdeps/i386/fpu/s_nextafterl.c |    2 +-
 3 files changed, 14 insertions(+), 1 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]