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 #4 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  706688aaefdeb48e63519525f11108ce14844a26 (commit)
      from  12da14a59135fe331f294b91488c1bdf55b35b4e (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=706688aaefdeb48e63519525f11108ce14844a26

commit 706688aaefdeb48e63519525f11108ce14844a26
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Nov 26 13:54:55 2014 +0000

    FIx ldbl-128ibm frexpl for 32-bit systems (bug 16619, bug 16740).

    This patch fixes bugs in ldbl-128ibm frexpl for 32-bit systems shown
    up by warnings:

    ../sysdeps/ieee754/ldbl-128ibm/s_frexpl.c:82:4: warning: left shift count
>= width of type
    ../sysdeps/ieee754/ldbl-128ibm/s_frexpl.c:129:5: warning: left shift count
>= width of type

    This did in fact show up in test-ldouble.out (alongside all the other
    problems there ... maybe we should again consider running the libm
    tests at finer granularity from the makefiles) as already covered by
    the testsuite after the previous patch that fixed these bugs for
    64-bit systems.  The fix is simply using 1LL instead of 1L when
    shifting by 52.

    Tested for powerpc32 (soft float).

        [BZ #16619]
        [BZ #16740]
        * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
        instead of 1L << 52.

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

Summary of changes:
 ChangeLog                              |    5 +++++
 NEWS                                   |    8 ++++----
 sysdeps/ieee754/ldbl-128ibm/s_frexpl.c |    4 ++--
 3 files changed, 11 insertions(+), 6 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]