diff options
| author | Tyge Løvset <[email protected]> | 2023-04-20 09:31:57 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-04-20 10:28:32 +0200 |
| commit | 119de13b8506e5f13d7b4d5ba3edbd394b6f3218 (patch) | |
| tree | 9e015314b1275d1e8bf6a6158b3c9af62c16de9b /include/stc/forward.h | |
| parent | 25679f9af707818df02a71ef7c996b2a806dae28 (diff) | |
| download | STC-modified-119de13b8506e5f13d7b4d5ba3edbd394b6f3218.tar.gz STC-modified-119de13b8506e5f13d7b4d5ba3edbd394b6f3218.zip | |
Minor internal cmap updates.
Diffstat (limited to 'include/stc/forward.h')
| -rw-r--r-- | include/stc/forward.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/stc/forward.h b/include/stc/forward.h index e79be580..78ec23a2 100644 --- a/include/stc/forward.h +++ b/include/stc/forward.h @@ -101,6 +101,8 @@ typedef union { SELF##_node *last; \ } SELF +typedef struct { uint8_t hashx/*, psl*/; } chash_slot; + #define _c_chash_types(SELF, KEY, VAL, MAP_ONLY, SET_ONLY) \ typedef KEY SELF##_key; \ typedef VAL SELF##_mapped; \ @@ -116,14 +118,14 @@ typedef union { \ typedef struct { \ SELF##_value *ref, *_end; \ - struct chash_slot* spos; \ + chash_slot* sref; \ } SELF##_iter; \ \ typedef struct SELF { \ SELF##_value* data; \ - struct chash_slot* slot; \ + chash_slot* slot; \ intptr_t size; \ - struct { uint64_t count: 48, maxdist: 16; } bucket; \ + struct { uint64_t count: 48, maxpsl: 16; } bucket; \ } SELF #define _c_aatree_types(SELF, KEY, VAL, MAP_ONLY, SET_ONLY) \ |
