diff options
| author | Aleksa Vučković <aleksav013@gmail.com> | 2022-05-30 00:10:05 +0200 |
|---|---|---|
| committer | Aleksa Vučković <aleksav013@gmail.com> | 2022-05-30 10:22:10 +0200 |
| commit | c45a7d924b10d9cc69a48896f7a6c99ecbf56493 (patch) | |
| tree | 0fd94d340c8b9bb909b048b1ba33eea69c602464 /include/08.heap/heap23.c | |
| parent | fe14916f60fe94db918a238d5d26ce2b0ed70e7e (diff) | |
Diffstat (limited to 'include/08.heap/heap23.c')
| -rw-r--r-- | include/08.heap/heap23.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/08.heap/heap23.c b/include/08.heap/heap23.c index 70305b7..4eaf953 100644 --- a/include/08.heap/heap23.c +++ b/include/08.heap/heap23.c @@ -9,13 +9,3 @@ bi = ptroff / b->bsize; /* .. */ bm = (uint8_t*)&b[1]; - /* clear allocation */ - id = bm[bi]; - /* oddly.. GCC did not optimize this */ - max = b->size / b->bsize; - for (x = bi; bm[x] == id && x < max; ++x) bm[x] = 0; - /* update free block count */ - b->used -= x - bi; - return; - } - } |
