aboutsummaryrefslogtreecommitdiff
path: root/include/08.heap/heap15.c
diff options
context:
space:
mode:
Diffstat (limited to 'include/08.heap/heap15.c')
-rw-r--r--include/08.heap/heap15.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/08.heap/heap15.c b/include/08.heap/heap15.c
new file mode 100644
index 0000000..5a39a40
--- /dev/null
+++ b/include/08.heap/heap15.c
@@ -0,0 +1,5 @@
+ if (bm[x] == 0)
+ {
+ /* count free blocks */
+ for (y = 0; bm[x + y] == 0 && y < bneed && (x + y) < bcnt;
+ ++y);