aboutsummaryrefslogtreecommitdiff
path: root/include/08.heap/heap13.c
diff options
context:
space:
mode:
Diffstat (limited to 'include/08.heap/heap13.c')
-rw-r--r--include/08.heap/heap13.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/08.heap/heap13.c b/include/08.heap/heap13.c
new file mode 100644
index 0000000..ab7463c
--- /dev/null
+++ b/include/08.heap/heap13.c
@@ -0,0 +1,4 @@
+ bcnt = b->size / b->bsize;
+ bneed = (size / b->bsize) * b->bsize < size ? size / b->bsize + 1 :
+ size / b->bsize;
+ bm = (uint8_t*)&b[1];