Move things to constants.odin

This commit is contained in:
Jeroen van Rijn
2025-05-12 17:13:59 +02:00
parent dec3d6959d
commit be24feb862
3 changed files with 23 additions and 19 deletions
+2 -4
View File
@@ -594,6 +594,8 @@ Mem_Protection_Bits :: enum {
/*
Bits for Map_Flags
See `constants.odin` for `MAP_SHARED_VALIDATE` and `MAP_HUGE_16KB`, et al.
*/
Map_Flags_Bits :: enum {
SHARED = 0,
@@ -619,10 +621,6 @@ Map_Flags_Bits :: enum {
UNINITIALIZED = 26,
}
// Not actually flags, but a shift and mask for when HUGETLB is defined
MAP_HUGE_SHIFT :: 26
MAP_HUGE_MASK :: 63
/*
Bits for MLock_Flags
*/