From 60c414c346a1d5ef0510ffbdc0ab75f288ee4d3f Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 29 Mar 2013 18:15:28 -0500 Subject: 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/rint-inputs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 benchtests/rint-inputs (limited to 'benchtests/rint-inputs') diff --git a/benchtests/rint-inputs b/benchtests/rint-inputs new file mode 100644 index 0000000000..a5f83dc8f9 --- /dev/null +++ b/benchtests/rint-inputs @@ -0,0 +1,4 @@ +78.5 +-78.5 +4503599627370497.0 +-4503599627370497.0 -- cgit v1.2.3