Explorar el Código

Simplify STARPU_UNLIKELY expressions

Samuel Thibault hace 4 años
padre
commit
277d888c35
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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