Move C/C++ sources to src subdirectory

This commit is contained in:
Vitaliy Filippov
2021-02-25 23:59:03 +03:00
parent 08aed962de
commit bf9a175efc
87 changed files with 194 additions and 189 deletions
+21
View File
@@ -0,0 +1,21 @@
// Copyright (c) Vitaliy Filippov, 2019+
// License: VNPL-1.1 (see README.md for details)
#pragma once
#include <stdint.h>
// Hierarchical bitmap allocator
class allocator
{
uint64_t size;
uint64_t free;
uint64_t last_one_mask;
uint64_t *mask;
public:
allocator(uint64_t blocks);
~allocator();
void set(uint64_t addr, bool value);
uint64_t find_free();
uint64_t get_free_count();
};