Hacker News new | ask | show | jobs
by amadvance 3476 days ago
If you use __builtin_expect() the Intel compiler uses a branch. I mean this way:

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