https://www.cnblogs.com/LubinLew/p/GCC-__builtin_expect.html
#define likely(x) __builtin_expect(!!(x), 1) 预测if (likely(x))成立可能性很大#define unlikely(x) __builtin_expect(!!(x), 0) 预测if (unlikely(x))成立可能性很小
posted on 2020-12-14 19:33 kehuadong 阅读(91) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 kehuadong Powered by .NET 8.0 on Kubernetes