Remove outdated comment
This commit is contained in:
@@ -347,40 +347,6 @@ static size_t page_index(struct buddy_alloc *alloc, void *ptr)
|
|||||||
return (x - y) >> MAX_BLOCK_LOG2;
|
return (x - y) >> MAX_BLOCK_LOG2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
4K ------------------------ 0
|
|
||||||
2K -------------------- 1
|
|
||||||
1K ---------------- 2
|
|
||||||
512B ---------- 3
|
|
||||||
256B ------ 4
|
|
||||||
256B ------ 5
|
|
||||||
512B ---------- 6
|
|
||||||
256B ------ 7
|
|
||||||
256B ------ 8
|
|
||||||
1K ---------------- 9
|
|
||||||
512B ---------- 10
|
|
||||||
256B ------ 11
|
|
||||||
256B ------ 12
|
|
||||||
512B ---------- 13
|
|
||||||
256B ------ 14
|
|
||||||
256B ------ 15
|
|
||||||
2K -------------------- 16
|
|
||||||
1K ---------------- 17
|
|
||||||
512B ---------- 18
|
|
||||||
256B ------ 19
|
|
||||||
256B ------ 20
|
|
||||||
512B ---------- 21
|
|
||||||
256B ------ 22
|
|
||||||
256B ------ 23
|
|
||||||
1K ---------------- 24
|
|
||||||
512B ---------- 25
|
|
||||||
256B ------ 26
|
|
||||||
256B ------ 27
|
|
||||||
512B ---------- 28
|
|
||||||
256B ------ 29
|
|
||||||
256B ------ 30
|
|
||||||
*/
|
|
||||||
|
|
||||||
static size_t block_info_index(void *ptr, size_t len)
|
static size_t block_info_index(void *ptr, size_t len)
|
||||||
{
|
{
|
||||||
int len_log2 = first_set(len);
|
int len_log2 = first_set(len);
|
||||||
|
|||||||
Reference in New Issue
Block a user