X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/bd504ef0e0b883cdd7917b73b3574eb9ce669905..527f99514973766e9c0382a4d8550dfb00f54939:/osfmk/mach/branch_predicates.h diff --git a/osfmk/mach/branch_predicates.h b/osfmk/mach/branch_predicates.h index ab32e87a7..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((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 */