Home | History | Annotate | Download | only in libutils

Lines Matching refs:hash

17 /* Implementation of Jenkins one-at-a-time hash function. These choices are
26 hash_t JenkinsHashWhiten(uint32_t hash) {
27 hash += (hash << 3);
28 hash ^= (hash >> 11);
29 hash += (hash << 15);
30 return hash;
33 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size) {
34 hash = JenkinsHashMix(hash, (uint32_t)size);
38 hash = JenkinsHashMix(hash, data);
44 hash = JenkinsHashMix(hash, data);
46 return hash;
49 uint32_t JenkinsHashMixShorts(uint32_t hash, const uint16_t* shorts, size_t size) {
50 hash = JenkinsHashMix(hash, (uint32_t)size);
54 hash = JenkinsHashMix(hash, data);
58 hash = JenkinsHashMix(hash, data);
60 return hash;