浏览代码

An even simpler likely

Eric Andersen 22 年之前
父节点
当前提交
2770a21e74
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/features.h

+ 1 - 1
include/features.h

@@ -422,7 +422,7 @@ uClibc was built without large file support enabled.
 #define __builtin_expect(x, expected_value) (x)
 #endif
 
-#define likely(x)		__builtin_expect(!!((int)(x)),1)
+#define likely(x)		__builtin_expect(!((int)(x)),0)
 #define unlikely(x)		__builtin_expect(((int)(x)),0)
 
 /* --- this is added to integrate linuxthreads */