mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
vmm: use red-black trees
This commit is contained in:
@@ -12,6 +12,9 @@
|
||||
#define likely(x) __builtin_expect(!!(x), 1)
|
||||
#define unlikely(x) __builtin_expect(!!(x), 0)
|
||||
|
||||
#define container_of(ptr, type, member) \
|
||||
((type *)((void *)ptr - offsetof(type, member)))
|
||||
|
||||
static inline long abs(long x) {
|
||||
return x < 0 ? -x : x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user