X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/6d2010ae8f7a6078e10b361c6962983bab233e0f..813fb2f63a553c957e917ede5f119b021d6ce391:/osfmk/mach/branch_predicates.h diff --git a/osfmk/mach/branch_predicates.h b/osfmk/mach/branch_predicates.h index 8d16db0fa..0882d3e1e 100644 --- a/osfmk/mach/branch_predicates.h +++ b/osfmk/mach/branch_predicates.h @@ -30,6 +30,6 @@ #ifndef _MACH_BRANCH_PREDICATES_H #define _MACH_BRANCH_PREDICATES_H -#define __probable(x) __builtin_expect((x), 1) -#define __improbable(x) __builtin_expect((x), 0) +#define __probable(x) __builtin_expect(!!((long)(x)), 1L) +#define __improbable(x) __builtin_expect(!!((long)(x)), 0L) #endif /* _MACH_BRANCH_PREDICATES_H */