blob: 221bc4f5511660ab728056d386f6dc3c5bcb2365 (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* 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;
}
}
|