浏览代码

Simplify STARPU_UNLIKELY expressions

Samuel Thibault 4 年之前
父节点
当前提交
277d888c35
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/starpu_util.h

+ 1 - 1
include/starpu_util.h

@@ -61,7 +61,7 @@ extern "C"
    expression as unlikely.
 */
 #ifdef __GNUC__
-#  define STARPU_UNLIKELY(expr)          (__builtin_expect(!!(expr),0))
+#  define STARPU_UNLIKELY(expr)          (__builtin_expect((expr),0))
 #else
 #  define STARPU_UNLIKELY(expr)          (expr)
 #endif