diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-05 18:01:41 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-05 18:01:41 +0100 |
| commit | eba2c74bff8f987e4bec7572cb3b2031261c237d (patch) | |
| tree | 5751a6c8f4cfddb4938621f49861b9392b427292 /src/map.c | |
| parent | ebe5beaafd90bccaee2ece8510e61d2cbf7a81c2 (diff) | |
Allow 128 bit map keys
Diffstat (limited to 'src/map.c')
| -rw-r--r-- | src/map.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -39,6 +39,8 @@ gb_inline HashKey hashing_proc(void const *data, isize len) { h.kind = HashKey_Default; // h.key = gb_murmur64(data, len); h.key = gb_fnv64a(data, len); + // h.key = MurmurHash3_128(data, len, 0x3803cb8e); + return h; } @@ -51,6 +53,7 @@ gb_inline HashKey hash_string(String s) { gb_inline HashKey hash_pointer(void *ptr) { HashKey h = {HashKey_Default}; + // h.key = u128_from_u64(cast(u64)cast(uintptr)ptr); h.key = cast(u64)cast(uintptr)ptr; h.ptr = ptr; h.kind = HashKey_Default; |