__builtin_expect详解[转]
摘要:
转自:http://babybandf.blog.163.com/blog/static/619935320105942336930/在GTK+2.0源码中有很多这样的宏:G_LIKELY和G_UNLIKELY。比如下面这段代码:if (G_LIKELY (acat == 1)) /* allocate through magazine layer */ { ThreadMemory *tmem = thread_memory_from_self(); guint ix = SLAB_INDEX (allocator, chunk_size);... 阅读全文
posted @ 2012-11-08 14:22 Lo0ong 阅读(667) 评论(0) 推荐(0) 编辑