diff options
| author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-07-28 01:16:04 -0400 |
|---|---|---|
| committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-07-28 01:16:04 -0400 |
| commit | 01c0aefb3de19b0cf66a947c60bece866dc9e565 (patch) | |
| tree | d69fa5635b85df2d6294e073dcc4912c83cbc09e /include | |
| parent | a706d3b803c949b60e1ee91d911f1c607a6bc22a (diff) | |
Switch to new np-section protocol.
Everything is in one 32-bit word now.
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal.h | 5 |
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 | ||
