From daa9757375c50299ed0866426d11a7d85c3719e6 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Sun, 18 Aug 2024 19:59:28 -0400 Subject: [PATCH] no work only paperclip --- CMakeLists.txt | 2 +- include/blt/std/mmap.h | 5 +++-- libraries/parallel-hashmap | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc25eb9..a18ddf3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) 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_TARGET BLT) diff --git a/include/blt/std/mmap.h b/include/blt/std/mmap.h index a8cc4a6..22b70c3 100644 --- a/include/blt/std/mmap.h +++ b/include/blt/std/mmap.h @@ -39,9 +39,10 @@ namespace blt */ 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); diff --git a/libraries/parallel-hashmap b/libraries/parallel-hashmap index 8a889d3..d88c5e1 160000 --- a/libraries/parallel-hashmap +++ b/libraries/parallel-hashmap @@ -1 +1 @@ -Subproject commit 8a889d3699b3c09ade435641fb034427f3fd12b6 +Subproject commit d88c5e15079047777b418132ece5879e7c9aaa2b