vmm: use red-black trees

This commit is contained in:
Matheus
2025-12-26 23:02:55 -03:00
parent 0358698757
commit 70d4c75cfe
3 changed files with 258 additions and 228 deletions
+3
View File
@@ -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;
}