News for hackers. Stuff that matters.
Re:I've been writing ring buffers wrong all these years by amadvance on Thursday December 15, 2016 @09:19AM (#13184670)
If you use __builtin_expect() the Intel compiler uses a branch. I mean this way:

if (__builtin_expect(index >= cap,0)) { ...

There are no comments on this comment yet.