30 #include <string.h> |
30 #include <string.h> |
31 |
31 |
32 void cx_hash_murmur(CxHashKey *key) { |
32 void cx_hash_murmur(CxHashKey *key) { |
33 unsigned char const *data = key->data.cbytes; |
33 unsigned char const *data = key->data.cbytes; |
34 if (data == NULL) { |
34 if (data == NULL) { |
35 /* extension: special value for NULL */ |
35 // extension: special value for NULL |
36 key->hash = 1574210520u; |
36 key->hash = 1574210520u; |
37 return; |
37 return; |
38 } |
38 } |
39 size_t len = key->len; |
39 size_t len = key->len; |
40 |
40 |