Lines Matching refs:seed
94 static uint32_t xxh32_round(uint32_t seed, const uint32_t input) in xxh32_round() argument
96 seed += input * PRIME32_2; in xxh32_round()
97 seed = xxh_rotl32(seed, 13); in xxh32_round()
98 seed *= PRIME32_1; in xxh32_round()
99 return seed; in xxh32_round()
102 uint32_t xxh32(const void *input, const size_t len, const uint32_t seed) in xxh32() argument
110 uint32_t v1 = seed + PRIME32_1 + PRIME32_2; in xxh32()
111 uint32_t v2 = seed + PRIME32_2; in xxh32()
112 uint32_t v3 = seed + 0; in xxh32()
113 uint32_t v4 = seed - PRIME32_1; in xxh32()
129 h32 = seed + PRIME32_5; in xxh32()
172 uint64_t xxh64(const void *input, const size_t len, const uint64_t seed) in xxh64() argument
180 uint64_t v1 = seed + PRIME64_1 + PRIME64_2; in xxh64()
181 uint64_t v2 = seed + PRIME64_2; in xxh64()
182 uint64_t v3 = seed + 0; in xxh64()
183 uint64_t v4 = seed - PRIME64_1; in xxh64()
204 h64 = seed + PRIME64_5; in xxh64()
242 void xxh32_reset(struct xxh32_state *statePtr, const uint32_t seed) in xxh32_reset() argument
248 state.v1 = seed + PRIME32_1 + PRIME32_2; in xxh32_reset()
249 state.v2 = seed + PRIME32_2; in xxh32_reset()
250 state.v3 = seed + 0; in xxh32_reset()
251 state.v4 = seed - PRIME32_1; in xxh32_reset()
256 void xxh64_reset(struct xxh64_state *statePtr, const uint64_t seed) in xxh64_reset() argument
262 state.v1 = seed + PRIME64_1 + PRIME64_2; in xxh64_reset()
263 state.v2 = seed + PRIME64_2; in xxh64_reset()
264 state.v3 = seed + 0; in xxh64_reset()
265 state.v4 = seed - PRIME64_1; in xxh64_reset()