summaryrefslogtreecommitdiff
path: root/UICaboodle
diff options
context:
space:
mode:
Diffstat (limited to 'UICaboodle')
-rw-r--r--UICaboodle/UCPlatform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/UICaboodle/UCPlatform.h b/UICaboodle/UCPlatform.h
index 4f2169e..c241232 100644
--- a/UICaboodle/UCPlatform.h
+++ b/UICaboodle/UCPlatform.h
@@ -54,3 +54,9 @@ while (false)
default: \
_assume(false); \
throw;
+
+#define _likely(expr) \
+ __builtin_expect(expr, 1)
+
+#define _unlikely(expr) \
+ __builtin_expect(expr, 0)