|
|
|
|
|
by tyg13
1096 days ago
|
|
Not necessarily. If the branch is predictable, it may be better than branchless, particularly if the alternative is a cmov. From Agner: > As a rule of thumb, we can say that a conditional jump is faster than a conditional move if the code is part of a dependency chain and the prediction rate is better than 75%. A conditional jump is also preferred if we can avoid a lengthy calculation [...] when the other operand is chosen |
|