Lines Matching refs:seed
21 static uint32_t crc32c_1(uint32_t seed, uint8_t v) { return _mm_crc32_u8(seed, v); } in crc32c_1() argument
22 static uint32_t crc32c_8(uint32_t seed, uint64_t v) { in crc32c_8() argument
24 return _mm_crc32_u64(seed, v); in crc32c_8()
26 seed = _mm_crc32_u32(seed, (uint32_t)(v )); in crc32c_8()
27 return _mm_crc32_u32(seed, (uint32_t)(v >> 32)); in crc32c_8()
32 static uint32_t crc32c_1(uint32_t seed, uint8_t v) { return __crc32cb(seed, v); } in crc32c_1() argument
33 static uint32_t crc32c_8(uint32_t seed, uint64_t v) { return __crc32cd(seed, v); } in crc32c_8() argument
86 static uint32_t crc32c_1(uint32_t seed, uint8_t v) { in crc32c_1() argument
87 return crc32c_table[(seed ^ v) & 0xff] in crc32c_1()
88 ^ (seed >> 8); in crc32c_1()
90 static uint32_t crc32c_8(uint32_t seed, uint64_t v) { in crc32c_8() argument
93 seed = crc32c_1(seed, (uint8_t)v); in crc32c_8()
96 return seed; in crc32c_8()
102 inline uint32_t hash_fn(const void* data, size_t len, uint32_t seed) { in hash_fn() argument
108 uint32_t a = seed, in hash_fn()
109 b = seed, in hash_fn()
110 c = seed; in hash_fn()
118 seed = crc32c_8(a, crc32c_8(b,c)); in hash_fn()
121 seed = crc32c_8(seed, sk_unaligned_load<uint64_t>(ptr)); in hash_fn()
126 seed = crc32c_1(seed, sk_unaligned_load<uint8_t >(ptr)); in hash_fn()
130 return seed; in hash_fn()