aboutsummaryrefslogtreecommitdiff
path: root/include/08.heap/heap16.c
diff options
context:
space:
mode:
Diffstat (limited to 'include/08.heap/heap16.c')
-rw-r--r--include/08.heap/heap16.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/08.heap/heap16.c b/include/08.heap/heap16.c
new file mode 100644
index 0000000..206a5e0
--- /dev/null
+++ b/include/08.heap/heap16.c
@@ -0,0 +1,5 @@
+ /* we have enough, now allocate them */
+ if (y == bneed)
+ {
+ /* find ID that does not match left or right */
+ nid = k_heapBMGetNID(bm[x - 1], bm[x + y]);