aboutsummaryrefslogtreecommitdiffstats
path: root/include/internal.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2012-05-03 16:46:21 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2012-05-03 16:46:21 -0400
commitb71e2f3c0796b66d118fd0166ae80c7d9a547740 (patch)
treee6d5843888e3ba43cbc9b5b705c892b00c88f2f1 /include/internal.h
parentff87ca319b0cd76f96f78f0347ad9aaa967bb16e (diff)
parent7bd1ec8308f63bffda37127d02a178c5fc91dac3 (diff)
Removed mixed-criticality codewip-color-jlh
Diffstat (limited to 'include/internal.h')
-rw-r--r--include/internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/internal.h b/include/internal.h
index 07253b7..f30ce61 100644
--- a/include/internal.h
+++ b/include/internal.h
@@ -18,8 +18,13 @@ int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg,
18 } 18 }
19 19
20 20
21/* taken from the kernel */
22
21#define likely(x) __builtin_expect((x), 1) 23#define likely(x) __builtin_expect((x), 1)
22#define unlikely(x) __builtin_expect((x), 0) 24#define unlikely(x) __builtin_expect((x), 0)
23 25
26#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
27#define BUILD_BUG_ON(condition) ((void)BUILD_BUG_ON_ZERO(condition))
28
24#endif 29#endif
25 30