Lines Matching refs:hash
17 /* Implementation of Jenkins one-at-a-time hash function. These choices are
30 hash_t JenkinsHashWhiten(uint32_t hash) {
31 hash += (hash << 3);
32 hash ^= (hash >> 11);
33 hash += (hash << 15);
34 return hash;
37 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size) {
41 hash = JenkinsHashMix(hash, (uint32_t)size);
45 hash = JenkinsHashMix(hash, data);
51 hash = JenkinsHashMix(hash, data);
53 return hash;
56 uint32_t JenkinsHashMixShorts(uint32_t hash, const uint16_t* shorts, size_t size) {
60 hash = JenkinsHashMix(hash, (uint32_t)size);
64 hash = JenkinsHashMix(hash, data);
68 hash = JenkinsHashMix(hash, data);
70 return hash;