Commit 455b4f17 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

include/compiler: drop likely/unlikely annotations



We have no more in-tree users of these. Besides, let's assume that the
CPU's branch predictor always has better clues than we might have when
assessing the likeliness of a condition.

Bonus: this clears a recurring source of namespace clashes with C++
frameworks like Boost.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent 4be045bb
......@@ -24,11 +24,6 @@
#define __stringify(x...) __stringify_1(x)
#endif
#ifndef likely
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#endif
#ifndef __noreturn
#define __noreturn __attribute__((__noreturn__))
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment