This is the mail archive of the 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/22243] log2(0) and log10(0) are wrong in downward rounding without the svid compat wrapper

--- Comment #2 from cvs-commit at gcc dot <cvs-commit at gcc dot> ---
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  86c27ade1e44e29922d33676f950f7334edb37a7 (commit)
       via  8f8f8ef7aba40ef883291e4c4d95a419c3327d70 (commit)
      from  955774751b71c4bc94029dd541ad9d34634ec995 (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 -----------------------------------------------------------------;h=86c27ade1e44e29922d33676f950f7334edb37a7

commit 86c27ade1e44e29922d33676f950f7334edb37a7
Author: Szabolcs Nagy <>
Date:   Tue Oct 3 18:12:42 2017 +0100

    [BZ #22244] Fix yn(n,0) without SVID wrapper

    Without SVID compat wrapper yn(n,0) and ynf(n,0) does not raise
    the divide-by-zero excpetion and it may return inf with the wrong
    sign for n < 0.

        [BZ #22244]
        * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
        * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.;h=8f8f8ef7aba40ef883291e4c4d95a419c3327d70

commit 8f8f8ef7aba40ef883291e4c4d95a419c3327d70
Author: Szabolcs Nagy <>
Date:   Tue Oct 3 17:13:18 2017 +0100

    [BZ #22243] fix log2(0) and log(10) in downward rounding

    On 64bit targets if the SVID compat wrapper is suppressed (e.g. static
    then log2(0) and log10(0) returned inf instead of -inf.

        [BZ #22243]
        * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use
        * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):


Summary of changes:
 ChangeLog                                    |   12 ++++++++++++
 sysdeps/ieee754/dbl-64/e_jn.c                |   10 +++++-----
 sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c |    2 +-
 sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c  |    2 +-
 sysdeps/ieee754/flt-32/e_jnf.c               |    6 +++---
 5 files changed, 22 insertions(+), 10 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]