News for hackers. Stuff that matters.
Re:I've been writing ring buffers wrong all these years by jnordwick on Saturday December 17, 2016 @07:01PM (#13203496)
It might have something to do with the branch not being part of a loop so the best it can do is assume the branch is random (think something like modding a hash code when it would indeed be random).

Ad was pointed out in the thread, recent cpus have reduced the latency of cmov to a cycle. So your result could also depend on your architecture.

There are no comments on this comment yet.