PowerPC: remove branch prediction from rint implementation
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 29 Mar 2013 23:15:28 +0000 (18:15 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Mon, 1 Apr 2013 11:36:51 +0000 (06:36 -0500)
commit60c414c346a1d5ef0510ffbdc0ab75f288ee4d3f
tree479eb937a9496619acfb24db9a6a48831f9c3fb3
parent6142896d53d0e8e8abe5dd0494380c45acc1a919
PowerPC: remove branch prediction from rint implementation

The branch prediction hints is actually hurts performance in this case.
The assembly implementation make two assumptions: 1. 'fabs (x) < 2^52'
is unlikely and 2. 'x > 0.0' is unlike (if 1. is true). Since it a
general floating point function, expected input is not bounded and then
it is better to let the hardware handle the branches.
benchtests/Makefile
benchtests/rint-inputs [new file with mode: 0644]
sysdeps/powerpc/powerpc32/fpu/s_rint.S
sysdeps/powerpc/powerpc32/fpu/s_rintf.S
sysdeps/powerpc/powerpc64/fpu/s_rint.S
sysdeps/powerpc/powerpc64/fpu/s_rintf.S