aboutsummaryrefslogtreecommitdiff
path: root/src/map.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-05 18:01:41 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-05 18:01:41 +0100
commiteba2c74bff8f987e4bec7572cb3b2031261c237d (patch)
tree5751a6c8f4cfddb4938621f49861b9392b427292 /src/map.c
parentebe5beaafd90bccaee2ece8510e61d2cbf7a81c2 (diff)
Allow 128 bit map keys
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index 83c9ce95a..e0d091e93 100644
--- a/src/map.c
+++ b/src/map.c
@@ -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;