summaryrefslogtreecommitdiff
path: root/src/memory-type-defs.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-12-12 14:03:32 -0500
committerJonathan Bradley <jcb@pikum.xyz>2023-12-12 14:03:32 -0500
commit29d768609375a5c9e01750a4be691b7b1c9434b5 (patch)
treec6ed701ad69223fa1eef9425254a64c0ba86b160 /src/memory-type-defs.hpp
parentba250cc496b2e617823ff8111ef463b6adea27f4 (diff)
use specific types for handle indexes consistently
Diffstat (limited to 'src/memory-type-defs.hpp')
-rw-r--r--src/memory-type-defs.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/memory-type-defs.hpp b/src/memory-type-defs.hpp
index bc45160..d9d6f5e 100644
--- a/src/memory-type-defs.hpp
+++ b/src/memory-type-defs.hpp
@@ -3,11 +3,14 @@
#include <cstdint>
+using PkeHandleBucketIndex_T = uint32_t;
+using PkeHandleItemIndex_T = uint32_t;
+
struct PkeHandle {
union {
struct {
- uint32_t bucketIndex;
- uint32_t itemIndex;
+ PkeHandleBucketIndex_T bucketIndex;
+ PkeHandleItemIndex_T itemIndex;
};
uint64_t hash = 0xFFFFFFFFFFFFFFFF;
};