]> sourceware.org Git - glibc.git/commit
PowerPC: Fix modf/modff optimization return sign
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Sat, 8 Mar 2014 17:24:32 +0000 (11:24 -0600)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Sat, 8 Mar 2014 17:24:32 +0000 (11:24 -0600)
commit54b46a4b3efd179ccbbf8e342e64391e2b590f1b
tree32dfb4e2743b612727fbf3ca05bacdfe9e103bba
parente9996ef750d845b46bc7d743c730c73f044720af
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.
ChangeLog
sysdeps/powerpc/power5+/fpu/s_modf.c
sysdeps/powerpc/power5+/fpu/s_modff.c
This page took 0.045437 seconds and 5 git commands to generate.