26 Commits

Author SHA1 Message Date
jun
f3e184da73 Fix guf_dict_init_with_capacity kv_idx_cap calculation 2025-03-29 17:32:13 +01:00
jun
9e0cd79ca0 Add guf_dict_shrink_capacity 2025-03-28 18:32:07 +01:00
jun
3ff4cd7572 Add more dict functions 2025-03-21 18:57:22 +01:00
jun
3ee07078f0 Add comments 2025-03-21 00:51:29 +01:00
jun
21d1b04e6b Add changeable load factor 2025-03-20 20:29:21 +01:00
jun
534ff261ca Add move- and copy ctors to dict and guf_str 2025-03-20 15:29:18 +01:00
jun
c039e24996 Use SIZE_MAX instead of SIZE_T_MAX 2025-03-19 23:03:10 +01:00
jun
29014f4c52 Fix dict asserts 2025-03-19 19:16:31 +01:00
jun
7e1bbc769e Replace puts with fputs in guf_err_to_str 2025-03-19 18:14:06 +01:00
jun
1e534731bb Pass key_hash to guf_dict_find_idx to avoid re-computation 2025-03-19 17:03:12 +01:00
jun
b01e087c85 Fix GUF_DICT_64_BIT_IDX and guf_dict_max_capacity() 2025-03-19 16:16:41 +01:00
jun
6a7bd2bd97 Use single u32/u64 as GUF_DICT_KV_META_T instead of two 2025-03-19 15:23:32 +01:00
jun
e535d39e3d Fix allocation overflow for guf_dbuf and guf_dict
(Implement GUF_ALLOC_MAX_BYTES and GUF_ALLOC_MAX_CAPACITY).
2025-03-18 13:43:36 +01:00
jun
364dd603cf Fix guf_dict size types 2025-03-06 13:51:32 +01:00
jun
9d62df6a83 Add more dict tests 2025-03-04 06:52:42 +01:00
jun
8e6ffcdc70 Add dict_erase tests 2025-03-03 16:14:13 +01:00
jun
a41ff868f2 Fix guf_dict probing 2025-03-03 11:28:40 +01:00
jun
4d97725bba Fix guf_dict growth bug 2025-03-02 21:41:30 +01:00
jun
cd1c1cd5db Refactor 2025-03-02 18:25:54 +01:00
jun
c1e125dfcb Add C++ tests 2025-02-24 00:01:48 +01:00
jun
4c35d180e8 Improve iterator functions 2025-02-23 13:36:09 +01:00
jun
13abedd2ad Implement guf_dict 2025-02-23 09:18:50 +01:00
jun
81fc19aa85 Work on guf_dict 2025-02-19 08:18:18 +01:00
jun
8c324c00f7 Major refactor 2025-01-30 13:29:14 +01:00
jun
9e0da64cb4 Use macro templates instead of void pointers 2025-01-04 19:47:15 +01:00
jun
0751726fc5 Initial commit 2025-01-03 10:38:57 +01:00