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/21171] log10, log2 and lgamma return incorrect results


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

--- 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  51b34a9c47e4228873788ad66699c328e27a3295 (commit)
      from  f0166c1643038e0ca42d300ddae36c00f400f4cf (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=51b34a9c47e4228873788ad66699c328e27a3295

commit 51b34a9c47e4228873788ad66699c328e27a3295
Author: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Date:   Fri Feb 17 09:07:57 2017 -0200

    Fix lgamma*, log10* and log2* results [BZ #21171]

    lgamma(-x) should return +Inf and raise divide-by-zero.
    log10(+-0) and log2(+-0) should return -Inf and raise divide-by-zero.

    Tested on powerpc, powerpc64, powerpc64le and x86_64.

        [BZ #21171]
        * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Return
        +Inf and raise divide-by-zero when x is negative.
        * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Likewise.
        * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
Likewise.

        * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10):  Return
        -Inf and raise divide-by-zero when x = +-0.
        * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
        * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
        * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
        * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
        * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
        * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
        * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.

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

Summary of changes:
 ChangeLog                              |   17 +++++++++++++++++
 sysdeps/ieee754/dbl-64/e_lgamma_r.c    |    2 +-
 sysdeps/ieee754/dbl-64/e_log10.c       |    2 +-
 sysdeps/ieee754/dbl-64/e_log2.c        |    2 +-
 sysdeps/ieee754/flt-32/e_lgammaf_r.c   |    2 +-
 sysdeps/ieee754/flt-32/e_log10f.c      |    2 +-
 sysdeps/ieee754/flt-32/e_log2f.c       |    2 +-
 sysdeps/ieee754/ldbl-128/e_lgammal_r.c |    2 +-
 sysdeps/ieee754/ldbl-128/e_log10l.c    |    2 +-
 sysdeps/ieee754/ldbl-128/e_log2l.c     |    2 +-
 sysdeps/ieee754/ldbl-128ibm/e_log10l.c |    2 +-
 sysdeps/ieee754/ldbl-128ibm/e_log2l.c  |    2 +-
 12 files changed, 28 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]