no work only paperclip

v1
Brett 2024-08-18 19:59:28 -04:00
parent a0a855463d
commit daa9757375
3 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20) cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake) include(cmake/color.cmake)
set(BLT_VERSION 0.18.36) set(BLT_VERSION 0.18.37)
set(BLT_TEST_VERSION 0.0.1) set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT) set(BLT_TARGET BLT)

View File

@ -39,9 +39,10 @@ namespace blt
*/ */
void handle_mmap_error(blt::logging::logger func); void handle_mmap_error(blt::logging::logger func);
inline static constexpr blt::size_t align_to_size(blt::size_t in, blt::size_t align) inline static constexpr blt::size_t align_size_to(blt::size_t size, blt::size_t align)
{ {
return 0; const blt::size_t MASK = ~(align - 1);
return (size & MASK) + align;
} }
void* allocate_2mb_huge_pages(blt::size_t bytes); void* allocate_2mb_huge_pages(blt::size_t bytes);

@ -1 +1 @@
Subproject commit 8a889d3699b3c09ade435641fb034427f3fd12b6 Subproject commit d88c5e15079047777b418132ece5879e7c9aaa2b