소스 검색

Revert "Simplify STARPU_UNLIKELY expressions"

This reverts commit 277d888c3513cb12eff828e02f71e0c40b9352c3.

It was producing warnings with pointers
Samuel Thibault 4 년 전
부모
커밋
27b50b372a
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