]> git.ipfire.org Git - thirdparty/glibc.git/commit - math/libm-test.inc
[BZ4997]
authorUlrich Drepper <drepper@redhat.com>
Fri, 11 Apr 2008 19:32:37 +0000 (19:32 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 11 Apr 2008 19:32:37 +0000 (19:32 +0000)
commitc1e6b459c874837a402c3c09d9fe7906e57d33e7
treeb8b455c573095bd80108b044530389f2158153f8
parent22dca1ea77613162d597c7cb0729873619eaf5e0
[BZ4997]

* sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
mantissa.
* sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
Likewise.  Also account for when x is an odd number between 2^52
and 2^53-1.
* sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
* math/libm-test.inc (lround_test, llround_test): Added test cases to
detect aforementioned erroneous conditions.
ChangeLog
math/libm-test.inc
sysdeps/powerpc/powerpc32/fpu/s_lround.S
sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S
sysdeps/powerpc/powerpc64/fpu/s_llround.S
sysdeps/powerpc/powerpc64/fpu/s_llroundf.S