summaryrefslogtreecommitdiffstats
path: root/exec-all.h
diff options
context:
space:
mode:
Diffstat (limited to 'exec-all.h')
-rw-r--r--exec-all.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/exec-all.h b/exec-all.h
index 434605d..39cb536 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -32,6 +32,9 @@
#define __builtin_expect(x, n) (x)
#endif
+#define likely(x) __builtin_expect(!!(x), 1)
+#define unlikely(x) __builtin_expect(!!(x), 0)
+
#ifdef __i386__
#define REGPARM(n) __attribute((regparm(n)))
#else
OpenPOWER on IntegriCloud