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/16740] IBM long double frexpl wrong when value slightly smaller than a power of two


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

--- Comment #8 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  524ae9ea2e3ae9f5bf5d655595fda827e9dc50a1 (commit)
      from  23d43090e0b275e47e09e859823e965a1eb323dc (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=524ae9ea2e3ae9f5bf5d655595fda827e9dc50a1

commit 524ae9ea2e3ae9f5bf5d655595fda827e9dc50a1
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Feb 26 12:57:21 2015 +0000

    Fix ldbl-128ibm ilogbl near powers of 2 (bug 18029).

    The ldbl-128ibm implementation of ilogbl produces incorrect results
    when the high part of the argument is a power of 2 and the low part a
    nonzero number with the opposite sign (and so the returned exponent
    should be 1 less than that of the high part).  For example, ilogbl
    (0x1.ffffffffffffffp1L) returns 2 but should return 1.  (This is
    similar to (fixed) bug 16740 for frexpl, and bug 18030 for logbl.)
    This patch adds checks for that case.

    Tested for powerpc.

        [BZ #18029]
        * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
        Adjust exponent of power of 2 down when low part has opposite
        sign.
        * math/libm-test.inc (ilogb_test_data): Add more tests.

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

Summary of changes:
 ChangeLog                              |    8 ++++++++
 NEWS                                   |    2 +-
 math/libm-test.inc                     |    5 +++++
 sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c |   23 +++++++++++++++++++----
 4 files changed, 33 insertions(+), 5 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]