|
|
|
|
|
by jnordwick
3476 days ago
|
|
Most likely (very very likely) the branch would be faster. It will almost always be predicted correctly (exceptions on the rollover) and cmov can be moderately expensive. The general rule is to only use cmov if your test condition is mostly random. |
|
https://godbolt.org/g/nyFLwp