]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/branch_predicates.h
xnu-4570.41.2.tar.gz
[apple/xnu.git] / osfmk / mach / branch_predicates.h
index ab32e87a7b4844b700cafd68ff2188eab83df4ca..0882d3e1e1d732e1eb34a332b3b4039a9368a2e4 100644 (file)
@@ -30,6 +30,6 @@
 #ifndef        _MACH_BRANCH_PREDICATES_H
 #define        _MACH_BRANCH_PREDICATES_H
 
-#define        __probable(x)   __builtin_expect((long)(x), 1L)
-#define        __improbable(x) __builtin_expect((long)(x), 0L)
+#define        __probable(x)   __builtin_expect(!!((long)(x)), 1L)
+#define        __improbable(x) __builtin_expect(!!((long)(x)), 0L)
 #endif /* _MACH_BRANCH_PREDICATES_H */