]> sourceware.org Git - glibc.git/commit
Fix powf (close to -1, large) (bug 18647).
authorJoseph Myers <joseph@codesourcery.com>
Wed, 5 Aug 2015 15:01:58 +0000 (15:01 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 5 Aug 2015 15:01:58 +0000 (15:01 +0000)
commitcf36e5034fa8ed5d44036bce09a55a7f00d19252
tree9fca061d81056a70793ebee9bf828b4e5b97f724
parent2aa6c8af26e65695e9daf382a6e508574a30cdf2
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.
ChangeLog
NEWS
math/auto-libm-test-in
math/auto-libm-test-out
sysdeps/ieee754/flt-32/e_powf.c
This page took 0.044791 seconds and 5 git commands to generate.