Rename allocator to allocator_t

This commit is contained in:
Vitaliy Filippov
2025-03-13 00:53:34 +03:00
parent b760951aa7
commit 263a3b5ad6
7 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -6,7 +6,7 @@
#include <stdint.h>
// Hierarchical bitmap allocator
class allocator
class allocator_t
{
uint64_t total;
uint64_t size;
@@ -14,8 +14,8 @@ class allocator
uint64_t last_one_mask;
uint64_t *mask;
public:
allocator(uint64_t blocks);
~allocator();
allocator_t(uint64_t blocks);
~allocator_t();
bool get(uint64_t addr);
void set(uint64_t addr, bool value);
uint64_t find_free();