Lines Matching refs:hash
29 uint64_t hash = seed; in hash_fn() local
34 uint64_t a = hash, in hash_fn()
35 b = hash, in hash_fn()
36 c = hash; in hash_fn()
45 hash = _mm_crc32_u32(a, _mm_crc32_u32(b, c)); in hash_fn()
50 hash = _mm_crc32_u64(hash, sk_unaligned_load<uint64_t>(data)); in hash_fn()
57 hash = _mm_crc32_u64(hash, sk_unaligned_load<uint64_t>(data)); in hash_fn()
63 auto hash32 = (uint32_t)hash; in hash_fn()
81 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t hash) {
88 uint32_t a = hash,
89 b = hash,
90 c = hash;
99 hash = _mm_crc32_u32(a, _mm_crc32_u32(b, c));
104 hash = _mm_crc32_u32(hash, sk_unaligned_load<uint32_t>(data));
111 hash = _mm_crc32_u32(hash, sk_unaligned_load<uint32_t>(data));
115 hash = _mm_crc32_u16(hash, sk_unaligned_load<uint16_t>(data));
119 hash = _mm_crc32_u8(hash, sk_unaligned_load<uint8_t>(data));
121 return hash;
125 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t hash) {
128 uint32_t a = hash,
129 b = hash,
130 c = hash;
139 hash = __crc32w(a, __crc32w(b, c));
144 hash = __crc32d(hash, sk_unaligned_load<uint64_t>(data));
151 hash = __crc32d(hash, sk_unaligned_load<uint64_t>(data));
155 hash = __crc32w(hash, sk_unaligned_load<uint32_t>(data));
159 hash = __crc32h(hash, sk_unaligned_load<uint16_t>(data));
163 hash = __crc32b(hash, sk_unaligned_load<uint8_t>(data));
165 return hash;
170 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t hash) {
182 hash ^= k;
183 hash = (hash << 13) | (hash >> 19);
184 hash *= 5;
185 hash += 0xe6546b64;
200 hash ^= k;
203 hash ^= original_bytes;
204 return SkChecksum::Mix(hash);