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);
2083 XXH32_endian_align(const xxh_u8* input, size_t len, xxh_u32 seed, XXH_alignment align) in XXH32_endian_align() argument
2092 xxh_u32 v1 = seed + XXH_PRIME32_1 + XXH_PRIME32_2; in XXH32_endian_align()
2093 xxh_u32 v2 = seed + XXH_PRIME32_2; in XXH32_endian_align()
2094 xxh_u32 v3 = seed + 0; in XXH32_endian_align()
2095 xxh_u32 v4 = seed - XXH_PRIME32_1; in XXH32_endian_align()
2107 h32 = seed + XXH_PRIME32_5; in XXH32_endian_align()
2116 XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t len, XXH32_hash_t seed) in XXH32() argument
2121 XXH32_reset(&state, seed); in XXH32()
2127 return XXH32_endian_align((const xxh_u8*)input, len, seed, XXH_aligned); in XXH32()
2130 return XXH32_endian_align((const xxh_u8*)input, len, seed, XXH_unaligned); in XXH32()
2158 XXH_PUBLIC_API XXH_errorcode XXH32_reset(XXH32_state_t* statePtr, XXH32_hash_t seed) in XXH32_reset() argument
2162 state.v[0] = seed + XXH_PRIME32_1 + XXH_PRIME32_2; in XXH32_reset()
2163 state.v[1] = seed + XXH_PRIME32_2; in XXH32_reset()
2164 state.v[2] = seed + 0; in XXH32_reset()
2165 state.v[3] = seed - XXH_PRIME32_1; in XXH32_reset()
2497 XXH64_endian_align(const xxh_u8* input, size_t len, xxh_u64 seed, XXH_alignment align) in XXH64_endian_align() argument
2505 xxh_u64 v1 = seed + XXH_PRIME64_1 + XXH_PRIME64_2; in XXH64_endian_align()
2506 xxh_u64 v2 = seed + XXH_PRIME64_2; in XXH64_endian_align()
2507 xxh_u64 v3 = seed + 0; in XXH64_endian_align()
2508 xxh_u64 v4 = seed - XXH_PRIME64_1; in XXH64_endian_align()
2524 h64 = seed + XXH_PRIME64_5; in XXH64_endian_align()
2534 XXH_PUBLIC_API XXH64_hash_t XXH64 (const void* input, size_t len, XXH64_hash_t seed) in XXH64() argument
2539 XXH64_reset(&state, seed); in XXH64()
2545 return XXH64_endian_align((const xxh_u8*)input, len, seed, XXH_aligned); in XXH64()
2548 return XXH64_endian_align((const xxh_u8*)input, len, seed, XXH_unaligned); in XXH64()
2574 XXH_PUBLIC_API XXH_errorcode XXH64_reset(XXH64_state_t* statePtr, XXH64_hash_t seed) in XXH64_reset() argument
2578 state.v[0] = seed + XXH_PRIME64_1 + XXH_PRIME64_2; in XXH64_reset()
2579 state.v[1] = seed + XXH_PRIME64_2; in XXH64_reset()
2580 state.v[2] = seed + 0; in XXH64_reset()
2581 state.v[3] = seed - XXH_PRIME64_1; in XXH64_reset()
3447 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
3462 xxh_u64 const bitflip = (XXH_readLE32(secret) ^ XXH_readLE32(secret+4)) + seed; in XXH3_len_1to3_64b()
3469 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
3474 seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; in XXH3_len_4to8_64b()
3477 xxh_u64 const bitflip = (XXH_readLE64(secret+8) ^ XXH_readLE64(secret+16)) - seed; in XXH3_len_4to8_64b()
3485 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
3490 { xxh_u64 const bitflip1 = (XXH_readLE64(secret+24) ^ XXH_readLE64(secret+32)) + seed; in XXH3_len_9to16_64b()
3491 xxh_u64 const bitflip2 = (XXH_readLE64(secret+40) ^ XXH_readLE64(secret+48)) - seed; in XXH3_len_9to16_64b()
3502 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
3505 { if (XXH_likely(len > 8)) return XXH3_len_9to16_64b(input, len, secret, seed); in XXH3_len_0to16_64b()
3506 if (XXH_likely(len >= 4)) return XXH3_len_4to8_64b(input, len, secret, seed); in XXH3_len_0to16_64b()
3507 if (len) return XXH3_len_1to3_64b(input, len, secret, seed); in XXH3_len_0to16_64b()
3508 return XXH64_avalanche(seed ^ (XXH_readLE64(secret+56) ^ XXH_readLE64(secret+64))); in XXH3_len_0to16_64b()
3574 XXH64_hash_t seed) in XXH3_len_17to128_64b() argument
3583 acc += XXH3_mix16B(input+48, secret+96, seed); in XXH3_len_17to128_64b()
3584 acc += XXH3_mix16B(input+len-64, secret+112, seed); in XXH3_len_17to128_64b()
3586 acc += XXH3_mix16B(input+32, secret+64, seed); in XXH3_len_17to128_64b()
3587 acc += XXH3_mix16B(input+len-48, secret+80, seed); in XXH3_len_17to128_64b()
3589 acc += XXH3_mix16B(input+16, secret+32, seed); in XXH3_len_17to128_64b()
3590 acc += XXH3_mix16B(input+len-32, secret+48, seed); in XXH3_len_17to128_64b()
3592 acc += XXH3_mix16B(input+0, secret+0, seed); in XXH3_len_17to128_64b()
3593 acc += XXH3_mix16B(input+len-16, secret+16, seed); in XXH3_len_17to128_64b()
3604 XXH64_hash_t seed) in XXH3_len_129to240_64b() argument
3616 acc += XXH3_mix16B(input+(16*i), secret+(16*i), seed); in XXH3_len_129to240_64b()
3646 acc += XXH3_mix16B(input+(16*i), secret+(16*(i-8)) + XXH3_MIDSIZE_STARTOFFSET, seed); in XXH3_len_129to240_64b()
3649 …cc += XXH3_mix16B(input + len - 16, secret + XXH3_SECRET_SIZE_MIN - XXH3_MIDSIZE_LASTOFFSET, seed); in XXH3_len_129to240_64b()
3797 …__m512i const seed = _mm512_mask_set1_epi64(_mm512_set1_epi64((xxh_i64)seed64), 0xAA, (xxh_i64)(0U… in XXH3_initCustomSecret_avx512() local
3812 dest[i] = _mm512_add_epi64(_mm512_stream_load_si512(remote_const_void.p), seed); in XXH3_initCustomSecret_avx512()
3895 …{ __m256i const seed = _mm256_set_epi64x((xxh_i64)(0U - seed64), (xxh_i64)seed64, (xxh_i64)(0U -… in XXH3_initCustomSecret_avx2() local
3912 dest[0] = _mm256_add_epi64(_mm256_stream_load_si256(src+0), seed); in XXH3_initCustomSecret_avx2()
3913 dest[1] = _mm256_add_epi64(_mm256_stream_load_si256(src+1), seed); in XXH3_initCustomSecret_avx2()
3914 dest[2] = _mm256_add_epi64(_mm256_stream_load_si256(src+2), seed); in XXH3_initCustomSecret_avx2()
3915 dest[3] = _mm256_add_epi64(_mm256_stream_load_si256(src+3), seed); in XXH3_initCustomSecret_avx2()
3916 dest[4] = _mm256_add_epi64(_mm256_stream_load_si256(src+4), seed); in XXH3_initCustomSecret_avx2()
3917 dest[5] = _mm256_add_epi64(_mm256_stream_load_si256(src+5), seed); in XXH3_initCustomSecret_avx2()
4003 __m128i const seed = _mm_load_si128((__m128i const*)seed64x2); in XXH3_initCustomSecret_sse2() local
4005 __m128i const seed = _mm_set_epi64x((xxh_i64)(0U - seed64), (xxh_i64)seed64); in XXH3_initCustomSecret_sse2() local
4023 dst16[i] = _mm_add_epi64(_mm_load_si128((const __m128i *)src16+i), seed); in XXH3_initCustomSecret_sse2()
4503 XXH64_hash_t seed, in XXH3_hashLong_64b_withSeed_internal() argument
4508 if (seed == 0) in XXH3_hashLong_64b_withSeed_internal()
4513 f_initSec(secret, seed); in XXH3_hashLong_64b_withSeed_internal()
4524 XXH64_hash_t seed, const xxh_u8* secret, size_t secretLen) in XXH3_hashLong_64b_withSeed() argument
4527 return XXH3_hashLong_64b_withSeed_internal(input, len, seed, in XXH3_hashLong_64b_withSeed()
4575 XXH3_64bits_withSeed(const void* input, size_t len, XXH64_hash_t seed) in XXH3_64bits_withSeed() argument
4577 …return XXH3_64bits_internal(input, len, seed, XXH3_kSecret, sizeof(XXH3_kSecret), XXH3_hashLong_64… in XXH3_64bits_withSeed()
4581 …retandSeed(const void* input, size_t len, const void* secret, size_t secretSize, XXH64_hash_t seed) in XXH3_64bits_withSecretandSeed() argument
4584 return XXH3_64bits_internal(input, len, seed, XXH3_kSecret, sizeof(XXH3_kSecret), NULL); in XXH3_64bits_withSecretandSeed()
4585 return XXH3_hashLong_64b_withSecret(input, len, seed, (const xxh_u8*)secret, secretSize); in XXH3_64bits_withSecretandSeed()
4681 XXH64_hash_t seed, in XXH3_reset_internal() argument
4698 statePtr->seed = seed; in XXH3_reset_internal()
4699 statePtr->useSeed = (seed != 0); in XXH3_reset_internal()
4728 XXH3_64bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed) in XXH3_64bits_reset_withSeed() argument
4731 if (seed==0) return XXH3_64bits_reset(statePtr); in XXH3_64bits_reset_withSeed()
4732 if ((seed != statePtr->seed) || (statePtr->extSecret != NULL)) in XXH3_64bits_reset_withSeed()
4733 XXH3_initCustomSecret(statePtr->customSecret, seed); in XXH3_64bits_reset_withSeed()
4734 XXH3_reset_internal(statePtr, seed, NULL, XXH_SECRET_DEFAULT_SIZE); in XXH3_64bits_reset_withSeed()
4956 return XXH3_64bits_withSeed(state->buffer, (size_t)state->totalLen, state->seed); in XXH3_64bits_digest()
4981 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
4998 xxh_u64 const bitflipl = (XXH_readLE32(secret) ^ XXH_readLE32(secret+4)) + seed; in XXH3_len_1to3_128b()
4999 xxh_u64 const bitfliph = (XXH_readLE32(secret+8) ^ XXH_readLE32(secret+12)) - seed; in XXH3_len_1to3_128b()
5010 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
5015 seed ^= (xxh_u64)XXH_swap32((xxh_u32)seed) << 32; in XXH3_len_4to8_128b()
5019 xxh_u64 const bitflip = (XXH_readLE64(secret+16) ^ XXH_readLE64(secret+24)) + seed; in XXH3_len_4to8_128b()
5037 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
5042 { xxh_u64 const bitflipl = (XXH_readLE64(secret+32) ^ XXH_readLE64(secret+40)) - seed; in XXH3_len_9to16_128b()
5043 xxh_u64 const bitfliph = (XXH_readLE64(secret+48) ^ XXH_readLE64(secret+56)) + seed; in XXH3_len_9to16_128b()
5112 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
5115 { if (len > 8) return XXH3_len_9to16_128b(input, len, secret, seed); in XXH3_len_0to16_128b()
5116 if (len >= 4) return XXH3_len_4to8_128b(input, len, secret, seed); in XXH3_len_0to16_128b()
5117 if (len) return XXH3_len_1to3_128b(input, len, secret, seed); in XXH3_len_0to16_128b()
5121 h128.low64 = XXH64_avalanche(seed ^ bitflipl); in XXH3_len_0to16_128b()
5122 h128.high64 = XXH64_avalanche( seed ^ bitfliph); in XXH3_len_0to16_128b()
5132 const xxh_u8* secret, XXH64_hash_t seed) in XXH128_mix32B() argument
5134 acc.low64 += XXH3_mix16B (input_1, secret+0, seed); in XXH128_mix32B()
5136 acc.high64 += XXH3_mix16B (input_2, secret+16, seed); in XXH128_mix32B()
5145 XXH64_hash_t seed) in XXH3_len_17to128_128b() argument
5156 acc = XXH128_mix32B(acc, input+48, input+len-64, secret+96, seed); in XXH3_len_17to128_128b()
5158 acc = XXH128_mix32B(acc, input+32, input+len-48, secret+64, seed); in XXH3_len_17to128_128b()
5160 acc = XXH128_mix32B(acc, input+16, input+len-32, secret+32, seed); in XXH3_len_17to128_128b()
5162 acc = XXH128_mix32B(acc, input, input+len-16, secret, seed); in XXH3_len_17to128_128b()
5167 + ((len - seed) * XXH_PRIME64_2); in XXH3_len_17to128_128b()
5178 XXH64_hash_t seed) in XXH3_len_129to240_128b() argument
5193 seed); in XXH3_len_129to240_128b()
5203 seed); in XXH3_len_129to240_128b()
5210 0ULL - seed); in XXH3_len_129to240_128b()
5216 + ((len - seed) * XXH_PRIME64_2); in XXH3_len_129to240_128b()
5352 XXH3_128bits_withSeed(const void* input, size_t len, XXH64_hash_t seed) in XXH3_128bits_withSeed() argument
5354 return XXH3_128bits_internal(input, len, seed, in XXH3_128bits_withSeed()
5361 …retandSeed(const void* input, size_t len, const void* secret, size_t secretSize, XXH64_hash_t seed) in XXH3_128bits_withSecretandSeed() argument
5364 return XXH3_128bits_internal(input, len, seed, XXH3_kSecret, sizeof(XXH3_kSecret), NULL); in XXH3_128bits_withSecretandSeed()
5365 return XXH3_hashLong_128b_withSecret(input, len, seed, secret, secretSize); in XXH3_128bits_withSecretandSeed()
5370 XXH128(const void* input, size_t len, XXH64_hash_t seed) in XXH128() argument
5372 return XXH3_128bits_withSeed(input, len, seed); in XXH128()
5399 XXH3_128bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed) in XXH3_128bits_reset_withSeed() argument
5401 return XXH3_64bits_reset_withSeed(statePtr, seed); in XXH3_128bits_reset_withSeed()
5406 …withSecretandSeed(XXH3_state_t* statePtr, const void* secret, size_t secretSize, XXH64_hash_t seed) in XXH3_128bits_reset_withSecretandSeed() argument
5408 return XXH3_64bits_reset_withSecretandSeed(statePtr, secret, secretSize, seed); in XXH3_128bits_reset_withSecretandSeed()
5439 if (state->seed) in XXH3_128bits_digest()
5440 return XXH3_128bits_withSeed(state->buffer, (size_t)state->totalLen, state->seed); in XXH3_128bits_digest()
5550 XXH3_generateSecret_fromSeed(void* secretBuffer, XXH64_hash_t seed) in XXH3_generateSecret_fromSeed() argument
5553 XXH3_initCustomSecret(secret, seed); in XXH3_generateSecret_fromSeed()