v1
Brett 2024-03-07 08:12:31 -05:00
parent 3652d987d0
commit d3166acbbb
1 changed files with 3 additions and 1 deletions

View File

@ -539,7 +539,9 @@ namespace blt
}
};
template<blt::size_t BLOCK_SIZE = 4096 * 512, bool USE_HUGE = false, blt::size_t HUGE_PAGE_SIZE = 4096 * 512, bool WARN_ON_FAIL = false>
inline constexpr blt::size_t BLT_2MB_SIZE = 4096 * 512;
template<blt::size_t BLOCK_SIZE = BLT_2MB_SIZE, bool USE_HUGE = false, blt::size_t HUGE_PAGE_SIZE = BLT_2MB_SIZE, bool WARN_ON_FAIL = false>
class bump_allocator2
{
// power of two