Lines Matching refs:seed
415 XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t length, XXH32_hash_t seed);
513 XXH_PUBLIC_API XXH_errorcode XXH32_reset (XXH32_state_t* statePtr, XXH32_hash_t seed);
709 XXH_PUBLIC_API XXH64_hash_t XXH64(const void* input, size_t length, XXH64_hash_t seed);
722 XXH_PUBLIC_API XXH_errorcode XXH64_reset (XXH64_state_t* statePtr, XXH64_hash_t seed);
792 XXH_PUBLIC_API XXH64_hash_t XXH3_64bits_withSeed(const void* data, size_t len, XXH64_hash_t seed);
852 XXH_PUBLIC_API XXH_errorcode XXH3_64bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed);
887 XXH_PUBLIC_API XXH128_hash_t XXH3_128bits_withSeed(const void* data, size_t len, XXH64_hash_t seed);
904 XXH_PUBLIC_API XXH_errorcode XXH3_128bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed);
1090 XXH64_hash_t seed; member
1113 #define XXH3_INITSTATE(XXH3_state_ptr) { (XXH3_state_ptr)->seed = 0; }
1119 XXH_PUBLIC_API XXH128_hash_t XXH128(const void* data, size_t len, XXH64_hash_t seed);
1169 XXH_PUBLIC_API void XXH3_generateSecret_fromSeed(void* secretBuffer, XXH64_hash_t seed);
1201 XXH64_hash_t seed);
2114 XXH32_endian_align(const xxh_u8* input, size_t len, xxh_u32 seed, XXH_alignment align) in XXH32_endian_align() argument
2123 xxh_u32 v1 = seed + XXH_PRIME32_1 + XXH_PRIME32_2; in XXH32_endian_align()
2124 xxh_u32 v2 = seed + XXH_PRIME32_2; in XXH32_endian_align()
2125 xxh_u32 v3 = seed + 0; in XXH32_endian_align()
2126 xxh_u32 v4 = seed - XXH_PRIME32_1; in XXH32_endian_align()
2138 h32 = seed + XXH_PRIME32_5; in XXH32_endian_align()
2147 XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t len, XXH32_hash_t seed) in XXH32() argument
2152 XXH32_reset(&state, seed); in XXH32()
2158 return XXH32_endian_align((const xxh_u8*)input, len, seed, XXH_aligned); in XXH32()
2161 return XXH32_endian_align((const xxh_u8*)input, len, seed, XXH_unaligned); in XXH32()
2189 XXH_PUBLIC_API XXH_errorcode XXH32_reset(XXH32_state_t* statePtr, XXH32_hash_t seed) in XXH32_reset() argument
2193 state.v[0] = seed + XXH_PRIME32_1 + XXH_PRIME32_2; in XXH32_reset()
2194 state.v[1] = seed + XXH_PRIME32_2; in XXH32_reset()
2195 state.v[2] = seed + 0; in XXH32_reset()
2196 state.v[3] = seed - XXH_PRIME32_1; in XXH32_reset()
2528 XXH64_endian_align(const xxh_u8* input, size_t len, xxh_u64 seed, XXH_alignment align) in XXH64_endian_align() argument
2536 xxh_u64 v1 = seed + XXH_PRIME64_1 + XXH_PRIME64_2; in XXH64_endian_align()
2537 xxh_u64 v2 = seed + XXH_PRIME64_2; in XXH64_endian_align()
2538 xxh_u64 v3 = seed + 0; in XXH64_endian_align()
2539 xxh_u64 v4 = seed - XXH_PRIME64_1; in XXH64_endian_align()
2555 h64 = seed + XXH_PRIME64_5; in XXH64_endian_align()
2565 XXH_PUBLIC_API XXH64_hash_t XXH64 (const void* input, size_t len, XXH64_hash_t seed) in XXH64() argument
2570 XXH64_reset(&state, seed); in XXH64()
2576 return XXH64_endian_align((const xxh_u8*)input, len, seed, XXH_aligned); in XXH64()
2579 return XXH64_endian_align((const xxh_u8*)input, len, seed, XXH_unaligned); in XXH64()
2605 XXH_PUBLIC_API XXH_errorcode XXH64_reset(XXH64_state_t* statePtr, XXH64_hash_t seed) in XXH64_reset() argument
2609 state.v[0] = seed + XXH_PRIME64_1 + XXH_PRIME64_2; in XXH64_reset()
2610 state.v[1] = seed + XXH_PRIME64_2; in XXH64_reset()
2611 state.v[2] = seed + 0; in XXH64_reset()
2612 state.v[3] = seed - XXH_PRIME64_1; in XXH64_reset()
3478 XXH3_len_1to3_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) in XXH3_len_1to3_64b() argument
3493 xxh_u64 const bitflip = (XXH_readLE32(secret) ^ XXH_readLE32(secret+4)) + seed; in XXH3_len_1to3_64b()
3500 XXH3_len_4to8_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) in XXH3_len_4to8_64b() argument
3505 seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; in XXH3_len_4to8_64b()
3508 xxh_u64 const bitflip = (XXH_readLE64(secret+8) ^ XXH_readLE64(secret+16)) - seed; in XXH3_len_4to8_64b()
3516 XXH3_len_9to16_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) in XXH3_len_9to16_64b() argument
3521 { xxh_u64 const bitflip1 = (XXH_readLE64(secret+24) ^ XXH_readLE64(secret+32)) + seed; in XXH3_len_9to16_64b()
3522 xxh_u64 const bitflip2 = (XXH_readLE64(secret+40) ^ XXH_readLE64(secret+48)) - seed; in XXH3_len_9to16_64b()
3533 XXH3_len_0to16_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) in XXH3_len_0to16_64b() argument
3536 { if (XXH_likely(len > 8)) return XXH3_len_9to16_64b(input, len, secret, seed); in XXH3_len_0to16_64b()
3537 if (XXH_likely(len >= 4)) return XXH3_len_4to8_64b(input, len, secret, seed); in XXH3_len_0to16_64b()
3538 if (len) return XXH3_len_1to3_64b(input, len, secret, seed); in XXH3_len_0to16_64b()
3539 return XXH64_avalanche(seed ^ (XXH_readLE64(secret+56) ^ XXH_readLE64(secret+64))); in XXH3_len_0to16_64b()
3605 XXH64_hash_t seed) in XXH3_len_17to128_64b() argument
3614 acc += XXH3_mix16B(input+48, secret+96, seed); in XXH3_len_17to128_64b()
3615 acc += XXH3_mix16B(input+len-64, secret+112, seed); in XXH3_len_17to128_64b()
3617 acc += XXH3_mix16B(input+32, secret+64, seed); in XXH3_len_17to128_64b()
3618 acc += XXH3_mix16B(input+len-48, secret+80, seed); in XXH3_len_17to128_64b()
3620 acc += XXH3_mix16B(input+16, secret+32, seed); in XXH3_len_17to128_64b()
3621 acc += XXH3_mix16B(input+len-32, secret+48, seed); in XXH3_len_17to128_64b()
3623 acc += XXH3_mix16B(input+0, secret+0, seed); in XXH3_len_17to128_64b()
3624 acc += XXH3_mix16B(input+len-16, secret+16, seed); in XXH3_len_17to128_64b()
3635 XXH64_hash_t seed) in XXH3_len_129to240_64b() argument
3647 acc += XXH3_mix16B(input+(16*i), secret+(16*i), seed); in XXH3_len_129to240_64b()
3677 acc += XXH3_mix16B(input+(16*i), secret+(16*(i-8)) + XXH3_MIDSIZE_STARTOFFSET, seed); in XXH3_len_129to240_64b()
3680 …cc += XXH3_mix16B(input + len - 16, secret + XXH3_SECRET_SIZE_MIN - XXH3_MIDSIZE_LASTOFFSET, seed); in XXH3_len_129to240_64b()
3828 …__m512i const seed = _mm512_mask_set1_epi64(_mm512_set1_epi64((xxh_i64)seed64), 0xAA, (xxh_i64)(0U… in XXH3_initCustomSecret_avx512() local
3843 dest[i] = _mm512_add_epi64(_mm512_stream_load_si512(remote_const_void.p), seed); in XXH3_initCustomSecret_avx512()
3926 …{ __m256i const seed = _mm256_set_epi64x((xxh_i64)(0U - seed64), (xxh_i64)seed64, (xxh_i64)(0U -… in XXH3_initCustomSecret_avx2() local
3943 dest[0] = _mm256_add_epi64(_mm256_stream_load_si256(src+0), seed); in XXH3_initCustomSecret_avx2()
3944 dest[1] = _mm256_add_epi64(_mm256_stream_load_si256(src+1), seed); in XXH3_initCustomSecret_avx2()
3945 dest[2] = _mm256_add_epi64(_mm256_stream_load_si256(src+2), seed); in XXH3_initCustomSecret_avx2()
3946 dest[3] = _mm256_add_epi64(_mm256_stream_load_si256(src+3), seed); in XXH3_initCustomSecret_avx2()
3947 dest[4] = _mm256_add_epi64(_mm256_stream_load_si256(src+4), seed); in XXH3_initCustomSecret_avx2()
3948 dest[5] = _mm256_add_epi64(_mm256_stream_load_si256(src+5), seed); in XXH3_initCustomSecret_avx2()
4034 __m128i const seed = _mm_load_si128((__m128i const*)seed64x2); in XXH3_initCustomSecret_sse2() local
4036 __m128i const seed = _mm_set_epi64x((xxh_i64)(0U - seed64), (xxh_i64)seed64); in XXH3_initCustomSecret_sse2() local
4054 dst16[i] = _mm_add_epi64(_mm_load_si128((const __m128i *)src16+i), seed); in XXH3_initCustomSecret_sse2()
4534 XXH64_hash_t seed, in XXH3_hashLong_64b_withSeed_internal() argument
4539 if (seed == 0) in XXH3_hashLong_64b_withSeed_internal()
4544 f_initSec(secret, seed); in XXH3_hashLong_64b_withSeed_internal()
4555 XXH64_hash_t seed, const xxh_u8* secret, size_t secretLen) in XXH3_hashLong_64b_withSeed() argument
4558 return XXH3_hashLong_64b_withSeed_internal(input, len, seed, in XXH3_hashLong_64b_withSeed()
4606 XXH3_64bits_withSeed(const void* input, size_t len, XXH64_hash_t seed) in XXH3_64bits_withSeed() argument
4608 …return XXH3_64bits_internal(input, len, seed, XXH3_kSecret, sizeof(XXH3_kSecret), XXH3_hashLong_64… in XXH3_64bits_withSeed()
4612 …retandSeed(const void* input, size_t len, const void* secret, size_t secretSize, XXH64_hash_t seed) in XXH3_64bits_withSecretandSeed() argument
4615 return XXH3_64bits_internal(input, len, seed, XXH3_kSecret, sizeof(XXH3_kSecret), NULL); in XXH3_64bits_withSecretandSeed()
4616 return XXH3_hashLong_64b_withSecret(input, len, seed, (const xxh_u8*)secret, secretSize); in XXH3_64bits_withSecretandSeed()
4712 XXH64_hash_t seed, in XXH3_reset_internal() argument
4729 statePtr->seed = seed; in XXH3_reset_internal()
4730 statePtr->useSeed = (seed != 0); in XXH3_reset_internal()
4759 XXH3_64bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed) in XXH3_64bits_reset_withSeed() argument
4762 if (seed==0) return XXH3_64bits_reset(statePtr); in XXH3_64bits_reset_withSeed()
4763 if ((seed != statePtr->seed) || (statePtr->extSecret != NULL)) in XXH3_64bits_reset_withSeed()
4764 XXH3_initCustomSecret(statePtr->customSecret, seed); in XXH3_64bits_reset_withSeed()
4765 XXH3_reset_internal(statePtr, seed, NULL, XXH_SECRET_DEFAULT_SIZE); in XXH3_64bits_reset_withSeed()
4987 return XXH3_64bits_withSeed(state->buffer, (size_t)state->totalLen, state->seed); in XXH3_64bits_digest()
5012 XXH3_len_1to3_128b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) in XXH3_len_1to3_128b() argument
5029 xxh_u64 const bitflipl = (XXH_readLE32(secret) ^ XXH_readLE32(secret+4)) + seed; in XXH3_len_1to3_128b()
5030 xxh_u64 const bitfliph = (XXH_readLE32(secret+8) ^ XXH_readLE32(secret+12)) - seed; in XXH3_len_1to3_128b()
5041 XXH3_len_4to8_128b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) in XXH3_len_4to8_128b() argument
5046 seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; in XXH3_len_4to8_128b()
5050 xxh_u64 const bitflip = (XXH_readLE64(secret+16) ^ XXH_readLE64(secret+24)) + seed; in XXH3_len_4to8_128b()
5068 XXH3_len_9to16_128b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) in XXH3_len_9to16_128b() argument
5073 { xxh_u64 const bitflipl = (XXH_readLE64(secret+32) ^ XXH_readLE64(secret+40)) - seed; in XXH3_len_9to16_128b()
5074 xxh_u64 const bitfliph = (XXH_readLE64(secret+48) ^ XXH_readLE64(secret+56)) + seed; in XXH3_len_9to16_128b()
5143 XXH3_len_0to16_128b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_hash_t seed) in XXH3_len_0to16_128b() argument
5146 { if (len > 8) return XXH3_len_9to16_128b(input, len, secret, seed); in XXH3_len_0to16_128b()
5147 if (len >= 4) return XXH3_len_4to8_128b(input, len, secret, seed); in XXH3_len_0to16_128b()
5148 if (len) return XXH3_len_1to3_128b(input, len, secret, seed); in XXH3_len_0to16_128b()
5152 h128.low64 = XXH64_avalanche(seed ^ bitflipl); in XXH3_len_0to16_128b()
5153 h128.high64 = XXH64_avalanche( seed ^ bitfliph); in XXH3_len_0to16_128b()
5163 const xxh_u8* secret, XXH64_hash_t seed) in XXH128_mix32B() argument
5165 acc.low64 += XXH3_mix16B (input_1, secret+0, seed); in XXH128_mix32B()
5167 acc.high64 += XXH3_mix16B (input_2, secret+16, seed); in XXH128_mix32B()
5176 XXH64_hash_t seed) in XXH3_len_17to128_128b() argument
5187 acc = XXH128_mix32B(acc, input+48, input+len-64, secret+96, seed); in XXH3_len_17to128_128b()
5189 acc = XXH128_mix32B(acc, input+32, input+len-48, secret+64, seed); in XXH3_len_17to128_128b()
5191 acc = XXH128_mix32B(acc, input+16, input+len-32, secret+32, seed); in XXH3_len_17to128_128b()
5193 acc = XXH128_mix32B(acc, input, input+len-16, secret, seed); in XXH3_len_17to128_128b()
5198 + ((len - seed) * XXH_PRIME64_2); in XXH3_len_17to128_128b()
5209 XXH64_hash_t seed) in XXH3_len_129to240_128b() argument
5224 seed); in XXH3_len_129to240_128b()
5234 seed); in XXH3_len_129to240_128b()
5241 0ULL - seed); in XXH3_len_129to240_128b()
5247 + ((len - seed) * XXH_PRIME64_2); in XXH3_len_129to240_128b()
5383 XXH3_128bits_withSeed(const void* input, size_t len, XXH64_hash_t seed) in XXH3_128bits_withSeed() argument
5385 return XXH3_128bits_internal(input, len, seed, in XXH3_128bits_withSeed()
5392 …retandSeed(const void* input, size_t len, const void* secret, size_t secretSize, XXH64_hash_t seed) in XXH3_128bits_withSecretandSeed() argument
5395 return XXH3_128bits_internal(input, len, seed, XXH3_kSecret, sizeof(XXH3_kSecret), NULL); in XXH3_128bits_withSecretandSeed()
5396 return XXH3_hashLong_128b_withSecret(input, len, seed, secret, secretSize); in XXH3_128bits_withSecretandSeed()
5401 XXH128(const void* input, size_t len, XXH64_hash_t seed) in XXH128() argument
5403 return XXH3_128bits_withSeed(input, len, seed); in XXH128()
5430 XXH3_128bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed) in XXH3_128bits_reset_withSeed() argument
5432 return XXH3_64bits_reset_withSeed(statePtr, seed); in XXH3_128bits_reset_withSeed()
5437 …withSecretandSeed(XXH3_state_t* statePtr, const void* secret, size_t secretSize, XXH64_hash_t seed) in XXH3_128bits_reset_withSecretandSeed() argument
5439 return XXH3_64bits_reset_withSecretandSeed(statePtr, secret, secretSize, seed); in XXH3_128bits_reset_withSecretandSeed()
5470 if (state->seed) in XXH3_128bits_digest()
5471 return XXH3_128bits_withSeed(state->buffer, (size_t)state->totalLen, state->seed); in XXH3_128bits_digest()
5581 XXH3_generateSecret_fromSeed(void* secretBuffer, XXH64_hash_t seed) in XXH3_generateSecret_fromSeed() argument
5584 XXH3_initCustomSecret(secret, seed); in XXH3_generateSecret_fromSeed()