aboutsummaryrefslogtreecommitdiff
path: root/core/runtime/core.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-11-23 16:56:31 +0000
committergingerBill <bill@gingerbill.org>2020-11-23 16:56:31 +0000
commit4762d2f2d15d64e012e2de876f1fd78c3ebd7c3e (patch)
tree31673f9df6ebb1fa7041fcd31ac6105baa6a6a6f /core/runtime/core.odin
parent67bc35e882800164c2a7a30cadc237d4051a4b46 (diff)
map type internal reorganization
Diffstat (limited to 'core/runtime/core.odin')
-rw-r--r--core/runtime/core.odin42
1 files changed, 0 insertions, 42 deletions
diff --git a/core/runtime/core.odin b/core/runtime/core.odin
index 14d5c99ce..76454159c 100644
--- a/core/runtime/core.odin
+++ b/core/runtime/core.odin
@@ -351,48 +351,6 @@ Raw_Map :: struct {
entries: Raw_Dynamic_Array,
}
-INITIAL_MAP_CAP :: 16;
-
-Map_Key :: struct {
- hash: u64,
- /* NOTE(bill)
- size_of(Map_Key) == 16 Bytes on 32-bit systems
- size_of(Map_Key) == 24 Bytes on 64-bit systems
-
- This does mean that an extra word is wasted for each map when a string is not used on 64-bit systems
- however, this is probably not a huge problem in terms of memory usage
- */
- key: struct #raw_union {
- str: string,
- val: u64,
- },
-}
-
-Map_Find_Result :: struct {
- hash_index: int,
- entry_prev: int,
- entry_index: int,
-}
-
-Map_Entry_Header :: struct {
- key: Map_Key,
- next: int,
-/*
- value: Value_Type,
-*/
-}
-
-Map_Header :: struct {
- m: ^Raw_Map,
- is_key_string: bool,
-
- entry_size: int,
- entry_align: int,
-
- value_offset: uintptr,
- value_size: int,
-}
-
/////////////////////////////
// Init Startup Procedures //
/////////////////////////////