Lines Matching refs:input
297 XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t length, XXH32_hash_t seed);
330 XXH_PUBLIC_API XXH_errorcode XXH32_update (XXH32_state_t* statePtr, const void* input, size_t lengt…
386 XXH_PUBLIC_API XXH64_hash_t XXH64 (const void* input, size_t length, XXH64_hash_t seed);
395 XXH_PUBLIC_API XXH_errorcode XXH64_update (XXH64_state_t* statePtr, const void* input, size_t lengt…
525 XXH_PUBLIC_API XXH_errorcode XXH3_64bits_update (XXH3_state_t* statePtr, const void* input, size_t …
562 XXH_PUBLIC_API XXH_errorcode XXH3_128bits_update (XXH3_state_t* statePtr, const void* input, size_t…
1205 static xxh_u32 XXH32_round(xxh_u32 acc, xxh_u32 input) in XXH32_round() argument
1207 acc += input * XXH_PRIME32_2; in XXH32_round()
1354 XXH32_endian_align(const xxh_u8* input, size_t len, xxh_u32 seed, XXH_alignment align) in XXH32_endian_align() argument
1356 const xxh_u8* bEnd = input + len; in XXH32_endian_align()
1360 if (input==NULL) { in XXH32_endian_align()
1362 bEnd=input=(const xxh_u8*)(size_t)16; in XXH32_endian_align()
1374 v1 = XXH32_round(v1, XXH_get32bits(input)); input += 4; in XXH32_endian_align()
1375 v2 = XXH32_round(v2, XXH_get32bits(input)); input += 4; in XXH32_endian_align()
1376 v3 = XXH32_round(v3, XXH_get32bits(input)); input += 4; in XXH32_endian_align()
1377 v4 = XXH32_round(v4, XXH_get32bits(input)); input += 4; in XXH32_endian_align()
1378 } while (input < limit); in XXH32_endian_align()
1388 return XXH32_finalize(h32, input, len&15, align); in XXH32_endian_align()
1392 XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t len, XXH32_hash_t seed) in XXH32() argument
1398 XXH32_update(&state, (const xxh_u8*)input, len); in XXH32()
1404 … if ((((size_t)input) & 3) == 0) { /* Input is 4-bytes aligned, leverage the speed benefit */ in XXH32()
1405 return XXH32_endian_align((const xxh_u8*)input, len, seed, XXH_aligned); in XXH32()
1408 return XXH32_endian_align((const xxh_u8*)input, len, seed, XXH_unaligned); in XXH32()
1446 XXH32_update(XXH32_state_t* state, const void* input, size_t len) in XXH32_update() argument
1448 if (input==NULL) in XXH32_update()
1455 { const xxh_u8* p = (const xxh_u8*)input; in XXH32_update()
1462 XXH_memcpy((xxh_u8*)(state->mem32) + state->memsize, input, len); in XXH32_update()
1468 XXH_memcpy((xxh_u8*)(state->mem32) + state->memsize, input, 16-state->memsize); in XXH32_update()
1727 static xxh_u64 XXH64_round(xxh_u64 acc, xxh_u64 input) in XXH64_round() argument
1729 acc += input * XXH_PRIME64_2; in XXH64_round()
1892 XXH64_endian_align(const xxh_u8* input, size_t len, xxh_u64 seed, XXH_alignment align) in XXH64_endian_align() argument
1894 const xxh_u8* bEnd = input + len; in XXH64_endian_align()
1898 if (input==NULL) { in XXH64_endian_align()
1900 bEnd=input=(const xxh_u8*)(size_t)32; in XXH64_endian_align()
1912 v1 = XXH64_round(v1, XXH_get64bits(input)); input+=8; in XXH64_endian_align()
1913 v2 = XXH64_round(v2, XXH_get64bits(input)); input+=8; in XXH64_endian_align()
1914 v3 = XXH64_round(v3, XXH_get64bits(input)); input+=8; in XXH64_endian_align()
1915 v4 = XXH64_round(v4, XXH_get64bits(input)); input+=8; in XXH64_endian_align()
1916 } while (input<=limit); in XXH64_endian_align()
1930 return XXH64_finalize(h64, input, len, align); in XXH64_endian_align()
1934 XXH_PUBLIC_API XXH64_hash_t XXH64 (const void* input, size_t len, XXH64_hash_t seed) in XXH64() argument
1940 XXH64_update(&state, (const xxh_u8*)input, len); in XXH64()
1946 if ((((size_t)input) & 7)==0) { /* Input is aligned, let's leverage the speed advantage */ in XXH64()
1947 return XXH64_endian_align((const xxh_u8*)input, len, seed, XXH_aligned); in XXH64()
1950 return XXH64_endian_align((const xxh_u8*)input, len, seed, XXH_unaligned); in XXH64()
1986 XXH64_update (XXH64_state_t* state, const void* input, size_t len) in XXH64_update() argument
1988 if (input==NULL) in XXH64_update()
1995 { const xxh_u8* p = (const xxh_u8*)input; in XXH64_update()
2001 XXH_memcpy(((xxh_u8*)state->mem64) + state->memsize, input, len); in XXH64_update()
2007 XXH_memcpy(((xxh_u8*)state->mem64) + state->memsize, input, 32-state->memsize); in XXH64_update()
2764 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
2766 XXH_ASSERT(input != NULL); in XXH3_len_1to3_64b()
2774 { xxh_u8 const c1 = input[0]; in XXH3_len_1to3_64b()
2775 xxh_u8 const c2 = input[len >> 1]; in XXH3_len_1to3_64b()
2776 xxh_u8 const c3 = input[len - 1]; in XXH3_len_1to3_64b()
2786 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
2788 XXH_ASSERT(input != NULL); in XXH3_len_4to8_64b()
2792 { xxh_u32 const input1 = XXH_readLE32(input); in XXH3_len_4to8_64b()
2793 xxh_u32 const input2 = XXH_readLE32(input + len - 4); in XXH3_len_4to8_64b()
2802 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
2804 XXH_ASSERT(input != NULL); in XXH3_len_9to16_64b()
2809 xxh_u64 const input_lo = XXH_readLE64(input) ^ bitflip1; in XXH3_len_9to16_64b()
2810 xxh_u64 const input_hi = XXH_readLE64(input + len - 8) ^ bitflip2; in XXH3_len_9to16_64b()
2819 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
2822 { if (XXH_likely(len > 8)) return XXH3_len_9to16_64b(input, len, secret, seed); in XXH3_len_0to16_64b()
2823 if (XXH_likely(len >= 4)) return XXH3_len_4to8_64b(input, len, secret, seed); in XXH3_len_0to16_64b()
2824 if (len) return XXH3_len_1to3_64b(input, len, secret, seed); in XXH3_len_0to16_64b()
2855 XXH_FORCE_INLINE xxh_u64 XXH3_mix16B(const xxh_u8* XXH_RESTRICT input, in XXH3_mix16B() argument
2878 { xxh_u64 const input_lo = XXH_readLE64(input); in XXH3_mix16B()
2879 xxh_u64 const input_hi = XXH_readLE64(input+8); in XXH3_mix16B()
2889 XXH3_len_17to128_64b(const xxh_u8* XXH_RESTRICT input, size_t len, in XXH3_len_17to128_64b() argument
2900 acc += XXH3_mix16B(input+48, secret+96, seed); in XXH3_len_17to128_64b()
2901 acc += XXH3_mix16B(input+len-64, secret+112, seed); in XXH3_len_17to128_64b()
2903 acc += XXH3_mix16B(input+32, secret+64, seed); in XXH3_len_17to128_64b()
2904 acc += XXH3_mix16B(input+len-48, secret+80, seed); in XXH3_len_17to128_64b()
2906 acc += XXH3_mix16B(input+16, secret+32, seed); in XXH3_len_17to128_64b()
2907 acc += XXH3_mix16B(input+len-32, secret+48, seed); in XXH3_len_17to128_64b()
2909 acc += XXH3_mix16B(input+0, secret+0, seed); in XXH3_len_17to128_64b()
2910 acc += XXH3_mix16B(input+len-16, secret+16, seed); in XXH3_len_17to128_64b()
2919 XXH3_len_129to240_64b(const xxh_u8* XXH_RESTRICT input, size_t len, in XXH3_len_129to240_64b() argument
2933 acc += XXH3_mix16B(input+(16*i), secret+(16*i), seed); in XXH3_len_129to240_64b()
2963 acc += XXH3_mix16B(input+(16*i), secret+(16*(i-8)) + XXH3_MIDSIZE_STARTOFFSET, seed); in XXH3_len_129to240_64b()
2966 …acc += XXH3_mix16B(input + len - 16, secret + XXH3_SECRET_SIZE_MIN - XXH3_MIDSIZE_LASTOFFSET, seed… in XXH3_len_129to240_64b()
3034 const void* XXH_RESTRICT input, in XXH3_accumulate_512_avx512() argument
3043 __m512i const data_vec = _mm512_loadu_si512 (input); in XXH3_accumulate_512_avx512()
3140 const void* XXH_RESTRICT input, in XXH3_accumulate_512_avx2() argument
3147 const __m256i* const xinput = (const __m256i *) input; in XXH3_accumulate_512_avx2()
3246 const void* XXH_RESTRICT input, in XXH3_accumulate_512_sse2() argument
3254 const __m128i* const xinput = (const __m128i *) input; in XXH3_accumulate_512_sse2()
3345 const void* XXH_RESTRICT input, in XXH3_accumulate_512_neon() argument
3352 uint8_t const* const xinput = (const uint8_t *) input; in XXH3_accumulate_512_neon()
3439 const void* XXH_RESTRICT input, in XXH3_accumulate_512_vsx() argument
3443 xxh_u64x2 const* const xinput = (xxh_u64x2 const*) input; /* no alignment restriction */ in XXH3_accumulate_512_vsx()
3504 const void* XXH_RESTRICT input, in XXH3_accumulate_512_scalar() argument
3508 const xxh_u8* const xinput = (const xxh_u8*) input; /* no alignment restriction */ in XXH3_accumulate_512_scalar()
3666 const xxh_u8* XXH_RESTRICT input, in XXH3_accumulate() argument
3673 const xxh_u8* const in = input + n*XXH_STRIPE_LEN; in XXH3_accumulate()
3683 const xxh_u8* XXH_RESTRICT input, size_t len, in XXH3_hashLong_internal_loop() argument
3697 XXH3_accumulate(acc, input + n*block_len, secret, nbStripesPerBlock, f_acc512); in XXH3_hashLong_internal_loop()
3705 XXH3_accumulate(acc, input + nb_blocks*block_len, secret, nbStripes, f_acc512); in XXH3_hashLong_internal_loop()
3708 { const xxh_u8* const p = input + len - XXH_STRIPE_LEN; in XXH3_hashLong_internal_loop()
3753 XXH3_hashLong_64b_internal(const void* XXH_RESTRICT input, size_t len, in XXH3_hashLong_64b_internal() argument
3760 …XXH3_hashLong_internal_loop(acc, (const xxh_u8*)input, len, (const xxh_u8*)secret, secretSize, f_a… in XXH3_hashLong_64b_internal()
3774 XXH3_hashLong_64b_withSecret(const void* XXH_RESTRICT input, size_t len, in XXH3_hashLong_64b_withSecret() argument
3778 …return XXH3_hashLong_64b_internal(input, len, secret, secretLen, XXH3_accumulate_512, XXH3_scrambl… in XXH3_hashLong_64b_withSecret()
3789 XXH3_hashLong_64b_default(const void* XXH_RESTRICT input, size_t len, in XXH3_hashLong_64b_default() argument
3793 …return XXH3_hashLong_64b_internal(input, len, XXH3_kSecret, sizeof(XXH3_kSecret), XXH3_accumulate_… in XXH3_hashLong_64b_default()
3808 XXH3_hashLong_64b_withSeed_internal(const void* input, size_t len, in XXH3_hashLong_64b_withSeed_internal() argument
3815 return XXH3_hashLong_64b_internal(input, len, in XXH3_hashLong_64b_withSeed_internal()
3820 return XXH3_hashLong_64b_internal(input, len, secret, sizeof(secret), in XXH3_hashLong_64b_withSeed_internal()
3829 XXH3_hashLong_64b_withSeed(const void* input, size_t len, in XXH3_hashLong_64b_withSeed() argument
3833 return XXH3_hashLong_64b_withSeed_internal(input, len, seed, in XXH3_hashLong_64b_withSeed()
3842 XXH3_64bits_internal(const void* XXH_RESTRICT input, size_t len, in XXH3_64bits_internal() argument
3855 return XXH3_len_0to16_64b((const xxh_u8*)input, len, (const xxh_u8*)secret, seed64); in XXH3_64bits_internal()
3857 … return XXH3_len_17to128_64b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64); in XXH3_64bits_internal()
3859 … return XXH3_len_129to240_64b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64); in XXH3_64bits_internal()
3860 return f_hashLong(input, len, seed64, (const xxh_u8*)secret, secretLen); in XXH3_64bits_internal()
3866 XXH_PUBLIC_API XXH64_hash_t XXH3_64bits(const void* input, size_t len) in XXH3_64bits() argument
3868 …return XXH3_64bits_internal(input, len, 0, XXH3_kSecret, sizeof(XXH3_kSecret), XXH3_hashLong_64b_d… in XXH3_64bits()
3872 XXH3_64bits_withSecret(const void* input, size_t len, const void* secret, size_t secretSize) in XXH3_64bits_withSecret() argument
3874 return XXH3_64bits_internal(input, len, 0, secret, secretSize, XXH3_hashLong_64b_withSecret); in XXH3_64bits_withSecret()
3878 XXH3_64bits_withSeed(const void* input, size_t len, XXH64_hash_t seed) in XXH3_64bits_withSeed() argument
3880 …return XXH3_64bits_internal(input, len, seed, XXH3_kSecret, sizeof(XXH3_kSecret), XXH3_hashLong_64… in XXH3_64bits_withSeed()
4031 const xxh_u8* XXH_RESTRICT input, size_t nbStripes, in XXH3_consumeStripes() argument
4042 …XXH3_accumulate(acc, input, secret + nbStripesSoFarPtr[0] * XXH_SECRET_CONSUME_RATE, nbStripesToEn… in XXH3_consumeStripes()
4044 …XXH3_accumulate(acc, input + nbStripesToEndofBlock * XXH_STRIPE_LEN, secret, nbStripesAfterBlock, … in XXH3_consumeStripes()
4047 …XXH3_accumulate(acc, input, secret + nbStripesSoFarPtr[0] * XXH_SECRET_CONSUME_RATE, nbStripes, f_… in XXH3_consumeStripes()
4057 const xxh_u8* input, size_t len, in XXH3_update() argument
4061 if (input==NULL) in XXH3_update()
4068 { const xxh_u8* const bEnd = input + len; in XXH3_update()
4074 XXH_memcpy(state->buffer + state->bufferedSize, input, len); in XXH3_update()
4089 XXH_memcpy(state->buffer + state->bufferedSize, input, loadSize); in XXH3_update()
4090 input += loadSize; in XXH3_update()
4098 XXH_ASSERT(input < bEnd); in XXH3_update()
4101 if (input+XXH3_INTERNALBUFFER_SIZE < bEnd) { in XXH3_update()
4106 input, XXH3_INTERNALBUFFER_STRIPES, in XXH3_update()
4109 input += XXH3_INTERNALBUFFER_SIZE; in XXH3_update()
4110 } while (input<limit); in XXH3_update()
4112 …memcpy(state->buffer + sizeof(state->buffer) - XXH_STRIPE_LEN, input - XXH_STRIPE_LEN, XXH_STRIPE_… in XXH3_update()
4114 XXH_ASSERT(input < bEnd); in XXH3_update()
4117 XXH_memcpy(state->buffer, input, (size_t)(bEnd-input)); in XXH3_update()
4118 state->bufferedSize = (XXH32_hash_t)(bEnd-input); in XXH3_update()
4125 XXH3_64bits_update(XXH3_state_t* state, const void* input, size_t len) in XXH3_64bits_update() argument
4127 return XXH3_update(state, (const xxh_u8*)input, len, in XXH3_64bits_update()
4247 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
4250 XXH_ASSERT(input != NULL); in XXH3_len_1to3_128b()
4258 { xxh_u8 const c1 = input[0]; in XXH3_len_1to3_128b()
4259 xxh_u8 const c2 = input[len >> 1]; in XXH3_len_1to3_128b()
4260 xxh_u8 const c3 = input[len - 1]; in XXH3_len_1to3_128b()
4276 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
4278 XXH_ASSERT(input != NULL); in XXH3_len_4to8_128b()
4282 { xxh_u32 const input_lo = XXH_readLE32(input); in XXH3_len_4to8_128b()
4283 xxh_u32 const input_hi = XXH_readLE32(input + len - 4); in XXH3_len_4to8_128b()
4303 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
4305 XXH_ASSERT(input != NULL); in XXH3_len_9to16_128b()
4310 xxh_u64 const input_lo = XXH_readLE64(input); in XXH3_len_9to16_128b()
4311 xxh_u64 input_hi = XXH_readLE64(input + len - 8); in XXH3_len_9to16_128b()
4378 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
4381 { if (len > 8) return XXH3_len_9to16_128b(input, len, secret, seed); in XXH3_len_0to16_128b()
4382 if (len >= 4) return XXH3_len_4to8_128b(input, len, secret, seed); in XXH3_len_0to16_128b()
4383 if (len) return XXH3_len_1to3_128b(input, len, secret, seed); in XXH3_len_0to16_128b()
4409 XXH3_len_17to128_128b(const xxh_u8* XXH_RESTRICT input, size_t len, in XXH3_len_17to128_128b() argument
4422 acc = XXH128_mix32B(acc, input+48, input+len-64, secret+96, seed); in XXH3_len_17to128_128b()
4424 acc = XXH128_mix32B(acc, input+32, input+len-48, secret+64, seed); in XXH3_len_17to128_128b()
4426 acc = XXH128_mix32B(acc, input+16, input+len-32, secret+32, seed); in XXH3_len_17to128_128b()
4428 acc = XXH128_mix32B(acc, input, input+len-16, secret, seed); in XXH3_len_17to128_128b()
4442 XXH3_len_129to240_128b(const xxh_u8* XXH_RESTRICT input, size_t len, in XXH3_len_129to240_128b() argument
4456 input + (32 * i), in XXH3_len_129to240_128b()
4457 input + (32 * i) + 16, in XXH3_len_129to240_128b()
4466 input + (32 * i), in XXH3_len_129to240_128b()
4467 input + (32 * i) + 16, in XXH3_len_129to240_128b()
4473 input + len - 16, in XXH3_len_129to240_128b()
4474 input + len - 32, in XXH3_len_129to240_128b()
4491 XXH3_hashLong_128b_internal(const void* XXH_RESTRICT input, size_t len, in XXH3_hashLong_128b_internal() argument
4498 …XXH3_hashLong_internal_loop(acc, (const xxh_u8*)input, len, secret, secretSize, f_acc512, f_scramb… in XXH3_hashLong_128b_internal()
4519 XXH3_hashLong_128b_default(const void* XXH_RESTRICT input, size_t len, in XXH3_hashLong_128b_default() argument
4524 return XXH3_hashLong_128b_internal(input, len, XXH3_kSecret, sizeof(XXH3_kSecret), in XXH3_hashLong_128b_default()
4532 XXH3_hashLong_128b_withSecret(const void* XXH_RESTRICT input, size_t len, in XXH3_hashLong_128b_withSecret() argument
4537 return XXH3_hashLong_128b_internal(input, len, (const xxh_u8*)secret, secretLen, in XXH3_hashLong_128b_withSecret()
4542 XXH3_hashLong_128b_withSeed_internal(const void* XXH_RESTRICT input, size_t len, in XXH3_hashLong_128b_withSeed_internal() argument
4549 return XXH3_hashLong_128b_internal(input, len, in XXH3_hashLong_128b_withSeed_internal()
4554 return XXH3_hashLong_128b_internal(input, len, (const xxh_u8*)secret, sizeof(secret), in XXH3_hashLong_128b_withSeed_internal()
4563 XXH3_hashLong_128b_withSeed(const void* input, size_t len, in XXH3_hashLong_128b_withSeed() argument
4567 return XXH3_hashLong_128b_withSeed_internal(input, len, seed64, in XXH3_hashLong_128b_withSeed()
4575 XXH3_128bits_internal(const void* input, size_t len, in XXH3_128bits_internal() argument
4587 return XXH3_len_0to16_128b((const xxh_u8*)input, len, (const xxh_u8*)secret, seed64); in XXH3_128bits_internal()
4589 … return XXH3_len_17to128_128b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64); in XXH3_128bits_internal()
4591 …return XXH3_len_129to240_128b((const xxh_u8*)input, len, (const xxh_u8*)secret, secretLen, seed64); in XXH3_128bits_internal()
4592 return f_hl128(input, len, seed64, secret, secretLen); in XXH3_128bits_internal()
4598 XXH_PUBLIC_API XXH128_hash_t XXH3_128bits(const void* input, size_t len) in XXH3_128bits() argument
4600 return XXH3_128bits_internal(input, len, 0, in XXH3_128bits()
4606 XXH3_128bits_withSecret(const void* input, size_t len, const void* secret, size_t secretSize) in XXH3_128bits_withSecret() argument
4608 return XXH3_128bits_internal(input, len, 0, in XXH3_128bits_withSecret()
4614 XXH3_128bits_withSeed(const void* input, size_t len, XXH64_hash_t seed) in XXH3_128bits_withSeed() argument
4616 return XXH3_128bits_internal(input, len, seed, in XXH3_128bits_withSeed()
4622 XXH128(const void* input, size_t len, XXH64_hash_t seed) in XXH128() argument
4624 return XXH3_128bits_withSeed(input, len, seed); in XXH128()
4672 XXH3_128bits_update(XXH3_state_t* state, const void* input, size_t len) in XXH3_128bits_update() argument
4674 return XXH3_update(state, (const xxh_u8*)input, len, in XXH3_128bits_update()