summaryrefslogtreecommitdiff
path: root/include/mimalloc-types.h
diff options
context:
space:
mode:
authordaan <daanl@outlook.com>2020-09-08 13:27:34 -0700
committerdaan <daanl@outlook.com>2020-09-08 13:27:34 -0700
commit037285ac0980b648d5c4ad6b359ac57d5f21e543 (patch)
tree85ea0a21e65bc799482379d26ba34b7136d7ec56 /include/mimalloc-types.h
parent161f9a7751c29e6930430fba850f0f7cdda5583d (diff)
refactor segment cache and map in a separate source file
Diffstat (limited to 'include/mimalloc-types.h')
-rw-r--r--include/mimalloc-types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mimalloc-types.h b/include/mimalloc-types.h
index 06ab1eb..8524de8 100644
--- a/include/mimalloc-types.h
+++ b/include/mimalloc-types.h
@@ -114,6 +114,7 @@ terms of the MIT license. A copy of the license can be found in the file
// Derived constants
#define MI_SEGMENT_SIZE (1ULL<<MI_SEGMENT_SHIFT)
+#define MI_SEGMENT_ALIGN MI_SEGMENT_SIZE
#define MI_SEGMENT_MASK (MI_SEGMENT_SIZE - 1)
#define MI_SEGMENT_SLICE_SIZE (1ULL<< MI_SEGMENT_SLICE_SHIFT)
#define MI_SLICES_PER_SEGMENT (MI_SEGMENT_SIZE / MI_SEGMENT_SLICE_SIZE) // 1024