Lines Matching refs:seed
209 "seed" can be used to alter the result predictably.
211 XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t length, XXH32_hash_t seed);
222 * Start a new hash by initializing state with a seed, using XXH*_reset().
241 XXH_PUBLIC_API XXH_errorcode XXH32_reset (XXH32_state_t* statePtr, XXH32_hash_t seed);
283 * @seed can be used to alter the result predictably.
286 XXH_PUBLIC_API XXH64_hash_t XXH64 (const void* input, size_t length, XXH64_hash_t seed);
294 XXH_PUBLIC_API XXH_errorcode XXH64_reset (XXH64_state_t* statePtr, XXH64_hash_t seed);
682 * Because of the 'r', the compiler has promised that seed will be in a
777 XXH32_endian_align(const xxh_u8* input, size_t len, xxh_u32 seed, XXH_alignment align)
791 xxh_u32 v1 = seed + PRIME32_1 + PRIME32_2;
792 xxh_u32 v2 = seed + PRIME32_2;
793 xxh_u32 v3 = seed + 0;
794 xxh_u32 v4 = seed - PRIME32_1;
806 h32 = seed + PRIME32_5;
815 XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t len, XXH32_hash_t seed)
820 XXH32_reset(&state, seed);
828 return XXH32_endian_align((const xxh_u8*)input, len, seed, XXH_aligned);
831 return XXH32_endian_align((const xxh_u8*)input, len, seed, XXH_unaligned);
854 XXH_PUBLIC_API XXH_errorcode XXH32_reset(XXH32_state_t* statePtr, XXH32_hash_t seed)
858 state.v1 = seed + PRIME32_1 + PRIME32_2;
859 state.v2 = seed + PRIME32_2;
860 state.v3 = seed + 0;
861 state.v4 = seed - PRIME32_1;
942 h32 = state->v3 /* == seed */ + PRIME32_5;
1235 XXH64_endian_align(const xxh_u8* input, size_t len, xxh_u64 seed, XXH_alignment align)
1249 xxh_u64 v1 = seed + PRIME64_1 + PRIME64_2;
1250 xxh_u64 v2 = seed + PRIME64_2;
1251 xxh_u64 v3 = seed + 0;
1252 xxh_u64 v4 = seed - PRIME64_1;
1268 h64 = seed + PRIME64_5;
1277 XXH_PUBLIC_API XXH64_hash_t XXH64 (const void* input, size_t len, XXH64_hash_t seed)
1282 XXH64_reset(&state, seed);
1290 return XXH64_endian_align((const xxh_u8*)input, len, seed, XXH_aligned);
1293 return XXH64_endian_align((const xxh_u8*)input, len, seed, XXH_unaligned);
1315 XXH_PUBLIC_API XXH_errorcode XXH64_reset(XXH64_state_t* statePtr, XXH64_hash_t seed)
1319 state.v1 = seed + PRIME64_1 + PRIME64_2;
1320 state.v2 = seed + PRIME64_2;
1321 state.v3 = seed + 0;
1322 state.v4 = seed - PRIME64_1;
1405 h64 = state->v3 /*seed*/ + PRIME64_5;