simply just dont inline

This commit is contained in:
Able 2024-11-24 11:04:12 -06:00
parent 6f82c92c30
commit 2261f36101

View file

@ -13,7 +13,7 @@ BlockAlloc := struct {
return .(0, null)
}
$alloc := fn(self: Self, alloc_type: type, count: uint): alloc_return.AllocReturn {
alloc := fn(self: Self, alloc_type: type, count: uint): alloc_return.AllocReturn {
offset := 1
a := 1
loop {
@ -35,7 +35,7 @@ BlockAlloc := struct {
}
}
$dealloc := fn(self: Self, ptr: ^u8, alloc_type: type, count: uint): void {
dealloc := fn(self: Self, ptr: ^u8, alloc_type: type, count: uint): void {
// size := size_of(alloc_type)*count
size := 64
// get the size alligned to the nearest block