VM: next_block_after can be removed

char-rename
Björn Lindqvist 2016-11-14 22:56:33 +01:00
parent b1ac5ae7ca
commit 69acbbbefd
1 changed files with 1 additions and 5 deletions

View File

@ -51,13 +51,9 @@ struct mark_bits {
return (bits[position.first] & ((cell)1 << position.second)) != 0;
}
cell next_block_after(const cell block, const cell size) {
return block + size;
}
void set_bitmap_range(cell* bits, const cell address, const cell size) {
std::pair<cell, cell> start = bitmap_deref(address);
std::pair<cell, cell> end = bitmap_deref(next_block_after(address, size));
std::pair<cell, cell> end = bitmap_deref(address + size);
cell start_mask = ((cell)1 << start.second) - 1;
cell end_mask = ((cell)1 << end.second) - 1;