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/18952] [ldbl-128/ldbl-128ibm] lgammal spurious "invalid", incorrect signgam


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

--- 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  9bb69b60fa6efdaebfa4d1a0291b555e71cd9caf (commit)
      from  00a7073c3810da6ef24a2e58cf6b574ac7926d23 (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=9bb69b60fa6efdaebfa4d1a0291b555e71cd9caf

commit 9bb69b60fa6efdaebfa4d1a0291b555e71cd9caf
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Sep 11 15:34:25 2015 +0000

    Fix ldbl-128/ldbl-128ibm lgamma spurious "invalid", incorrect signgam (bug
18952).

    The ldbl-128 / ldbl-128ibm implementation of lgammal converts (the
    floor of minus) non-integer negative arguments to int to determine the
    value of signgam.  When those values are outside the range of int,
    this produces spurious "invalid" exceptions and incorrect values of
    signgam.  This patch fixes this by instead determining signgam through
    comparing half the integer in question to floor of half the integer.

    Tested for mips64, x86_64 and x86.

        [BZ #18952]
        * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
        not convert non-integer negative arguments to int to determine the
        value of signgam.
        * math/auto-libm-test-in: Add more tests of lgamma.
        * math/auto-libm-test-out: Regenerated.

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

Summary of changes:
 ChangeLog                              |    7 +++++
 NEWS                                   |    2 +-
 math/auto-libm-test-in                 |    3 ++
 math/auto-libm-test-out                |   42 ++++++++++++++++++++++++++++++++
 sysdeps/ieee754/ldbl-128/e_lgammal_r.c |    4 +-
 5 files changed, 55 insertions(+), 3 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]