Skip to content
Commit 987322bc authored by Adhemerval Zanella's avatar Adhemerval Zanella Committed by Ryan S. Arnold
Browse files

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.

(backported from commit 60c414c3)

This backport does not include the benchmark tests from the original
commit.
parent ace88917
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment