diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-03-08 11:24:32 -0600 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-03-08 11:24:32 -0600 |
commit | 54b46a4b3efd179ccbbf8e342e64391e2b590f1b (patch) | |
tree | 32dfb4e2743b612727fbf3ca05bacdfe9e103bba /ChangeLog | |
parent | e9996ef750d845b46bc7d743c730c73f044720af (diff) | |
download | glibc-54b46a4b3efd179ccbbf8e342e64391e2b590f1b.tar.gz glibc-54b46a4b3efd179ccbbf8e342e64391e2b590f1b.tar.xz glibc-54b46a4b3efd179ccbbf8e342e64391e2b590f1b.zip |
PowerPC: Fix modf/modff optimization return sign
This patch fix the optimized powerpc-fpu modf/modff implementation when using in non-default rounding mode where the zero sign is not as expected. It fixes the libm testsuite tests modf_downward (0) == 0.00000000000000000000e+00 modf_downward (20) == 0.00000000000000000000e+00 modf_downward (21) == 0.00000000000000000000e+00 Where the sign returned was negative.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 4071f087d1..526617720f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-03-03 Adhemerval Zanella <azanella@linux.vnet.ibm.com> + + * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct + sign in non default rounding modes. + * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise. + 2014-03-08 Joseph Myers <joseph@codesourcery.com> * math/libm-test.inc (ALL_RM_TEST): New macro. |