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/18647] powf(-0x1.000002p0, 0x1p30) returns 0 instead of +inf


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

--- Comment #3 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  cf36e5034fa8ed5d44036bce09a55a7f00d19252 (commit)
      from  2aa6c8af26e65695e9daf382a6e508574a30cdf2 (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=cf36e5034fa8ed5d44036bce09a55a7f00d19252

commit cf36e5034fa8ed5d44036bce09a55a7f00d19252
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Aug 5 15:01:58 2015 +0000

    Fix powf (close to -1, large) (bug 18647).

    The flt-32 implementation of powf wrongly uses x-1 instead of |x|-1
    when computing log (x) for the case where |x| is close to 1 and y is
    large.  This patch fixes the logic accordingly.  Relevant tests
    existed for x close to 1, and corresponding tests are added for x
    close to -1, as well as for some new variant cases.

    Tested for x86_64 and x86.

        [BZ #18647]
        * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
        and |x| close to 1, use absolute value of x when computing log.
        * math/auto-libm-test-in: Add more tests of pow.
        * math/auto-libm-test-out: Regenerated.

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

Summary of changes:
 ChangeLog                       |    8 +
 NEWS                            |    2 +-
 math/auto-libm-test-in          |   40 +
 math/auto-libm-test-out         | 5611 +++++++++++++++++++++++++++++++++++++++
 sysdeps/ieee754/flt-32/e_powf.c |    2 +-
 5 files changed, 5661 insertions(+), 2 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]