X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/670a04941260717d9759a85b8d20585bc976e56e..ab2cfc1e0f4678f398698b0d9db90c69e1e71f3c:/UICaboodle/UCPlatform.h diff --git a/UICaboodle/UCPlatform.h b/UICaboodle/UCPlatform.h index 2506a5dc..c2412329 100644 --- a/UICaboodle/UCPlatform.h +++ b/UICaboodle/UCPlatform.h @@ -43,9 +43,9 @@ while (false) #define _label _label_(__LINE__) #define _packed \ - __attribute__((packed)) - -#define _finline inline __attribute__((always_inline)) + __attribute__((__packed__)) +#define _finline \ + inline __attribute__((__always_inline__)) #define _assume(e) \ _assert(e) @@ -54,3 +54,9 @@ while (false) default: \ _assume(false); \ throw; + +#define _likely(expr) \ + __builtin_expect(expr, 1) + +#define _unlikely(expr) \ + __builtin_expect(expr, 0)