]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
PowerPC: Fix nearbyint/nearbyintf result for FE_DOWNWARD
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Sun, 6 Apr 2014 19:50:11 +0000 (14:50 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Sun, 6 Apr 2014 19:58:05 +0000 (14:58 -0500)
commit8bd70862e11023e7f827f240a5a214f847ae982d
treec7ed6614a24d974afaf8b416da0fc373052a5911
parentd42f3448a7af9c55f2193450964772c7c2a0d29b
PowerPC: Fix nearbyint/nearbyintf result for FE_DOWNWARD

This patch fixes the powerpc32 optimized nearbyint/nearbyintf bogus
results for FE_DOWNWARD rounding mode.  This is due wrong instructions
sequence used in the rounding calculation (two subtractions instead of
adition and a subtraction).

Fixes BZ#16815.
ChangeLog
NEWS
sysdeps/powerpc/fpu/libm-test-ulps
sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S
sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S