__builtin_expect的作用
摘要:应用举例: #define LIKELY(x) __builtin_expect(!!(x), 1) //x很可能为真 #define UNLIKELY(x) __builtin_expect(!!(x), 0) //x很可能为假!!的作用是将x转变成布尔类型并取反可以用来替代if()的条件语句,通
阅读全文
posted @ 2020-12-24 16:02
posted @ 2020-12-24 16:02
posted @ 2020-11-23 19:47
posted @ 2020-11-17 14:23
posted @ 2018-11-29 13:57
posted @ 2018-11-27 19:46