summaryrefslogtreecommitdiff
path: root/include/compiler.h
diff options
context:
space:
mode:
authorTom Rix <Tom.Rix@windriver.com>2010-01-18 08:08:32 -0600
committerTom Rix <Tom.Rix@windriver.com>2010-01-18 08:08:32 -0600
commita7709d926dbc7cb1541034fcf2b21ce3e838cb12 (patch)
tree72c58261577bc00d98dbd208e4fa95dfbb2487a5 /include/compiler.h
parent1c2a8e359ebbec0dbef62f5b54c72f9cd72ccd59 (diff)
parent88ffb2665cd066b6b20cfaade13929d4e8428dde (diff)
Merge branch 't-ml-master' into t-master
Diffstat (limited to 'include/compiler.h')
-rw-r--r--include/compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h
index e602cce2e9b..332618e9de9 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -125,4 +125,7 @@ typedef unsigned int uintptr_t;
/* compiler options */
#define uninitialized_var(x) x = x
+#define likely(x) __builtin_expect(!!(x), 1)
+#define unlikely(x) __builtin_expect(!!(x), 0)
+
#endif