摘要: Linux Kernel : likely/unlikely macrosEver wondered what the likely and unlikely macros in the linux kernel are ?The macros are defined as :#define likely(x) __builtin_expect((x),1)#define unlikely(x) __builtin_expect((x),0)The __builtin_expect is a method that gcc (versions >= 2.96) offer ... 阅读全文
posted @ 2012-02-20 13:57 Jack204 阅读(346) 评论(0) 推荐(0) 编辑