2 ms·
The branch will be properly predicted every time except for when it wraps. This should be faster than any of the alternatives.
by jnordwick 10y ago
The branch will be properly predicted every time except for when it wraps. This should be faster than any of the alternatives.
- dllthomas 10y agoI fully believe that there are plenty of contexts where that's true - particularly in any throughput oriented system where the buffer is large. But if you care, measure.