[<<][c][>>][..]
Sat Aug 15 11:36:41 CEST 2009

Unlikely

I've started to use the `unlikely' annotation.

#define unlikely(x) __builtin_expect((x),0)

if (unlikely(NULL == foo)) { ... }

Apart from catering to that insatiable hunger for fast code it is also
makes code more readable: on the first reading pass you can ignore
these checks to see the default control path.



[Reply][About]
[<<][c][>>][..]