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/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'benchtests/Makefile') diff --git a/benchtests/Makefile b/benchtests/Makefile index 74938b925c..cc54b81faa 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -43,7 +43,7 @@ # See pow-inputs for an example. subdir := benchtests -bench := exp pow +bench := exp pow rint exp-ITER = 100000 exp-ARGLIST = double @@ -55,5 +55,10 @@ pow-ARGLIST = double:double pow-RET = double LDFLAGS-bench-pow = -lm +rint-ITER = 250000000 +rint-ARGLIST = double +rint-RET = double +LDFLAGS-bench-rint = -lm + include ../Makeconfig include ../Rules -- cgit 1.4.1