|
@@ -105,7 +105,7 @@ void * bitmap_malloc(raw_block_header_t *raw_block, size_t req_size) {
|
|
// Calculate the pointer to the chunk to be retrieved
|
|
// Calculate the pointer to the chunk to be retrieved
|
|
chunk_address = (chunk_header_t *)((char *)rb_header +
|
|
chunk_address = (chunk_header_t *)((char *)rb_header +
|
|
sizeof(bitmap_rb_t) +
|
|
sizeof(bitmap_rb_t) +
|
|
- rb_header->elements * BMAP_EL_SIZE +
|
|
|
|
|
|
+ (rb_header->elements - 1) * BMAP_EL_SIZE +
|
|
(i * BMAP_EL_SIZE_BITS + found - 1) *
|
|
(i * BMAP_EL_SIZE_BITS + found - 1) *
|
|
rb_header->bytes_per_cell);
|
|
rb_header->bytes_per_cell);
|
|
chunk_address->num_of_cells = cells;
|
|
chunk_address->num_of_cells = cells;
|