Lines Matching refs:statePtr

489 XXH_PUBLIC_API XXH_errorcode  XXH32_freeState(XXH32_state_t* statePtr);
513 XXH_PUBLIC_API XXH_errorcode XXH32_reset (XXH32_state_t* statePtr, XXH32_hash_t seed);
533 XXH_PUBLIC_API XXH_errorcode XXH32_update (XXH32_state_t* statePtr, const void* input, size_t lengt…
549 XXH_PUBLIC_API XXH32_hash_t XXH32_digest (const XXH32_state_t* statePtr);
719 XXH_PUBLIC_API XXH_errorcode XXH64_freeState(XXH64_state_t* statePtr);
722 XXH_PUBLIC_API XXH_errorcode XXH64_reset (XXH64_state_t* statePtr, XXH64_hash_t seed);
723 XXH_PUBLIC_API XXH_errorcode XXH64_update (XXH64_state_t* statePtr, const void* input, size_t lengt…
724 XXH_PUBLIC_API XXH64_hash_t XXH64_digest (const XXH64_state_t* statePtr);
838 XXH_PUBLIC_API XXH_errorcode XXH3_freeState(XXH3_state_t* statePtr);
846 XXH_PUBLIC_API XXH_errorcode XXH3_64bits_reset(XXH3_state_t* statePtr);
852 XXH_PUBLIC_API XXH_errorcode XXH3_64bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed);
862 XXH_PUBLIC_API XXH_errorcode XXH3_64bits_reset_withSecret(XXH3_state_t* statePtr, const void* secre…
864 XXH_PUBLIC_API XXH_errorcode XXH3_64bits_update (XXH3_state_t* statePtr, const void* input, size_t …
865 XXH_PUBLIC_API XXH64_hash_t XXH3_64bits_digest (const XXH3_state_t* statePtr);
903 XXH_PUBLIC_API XXH_errorcode XXH3_128bits_reset(XXH3_state_t* statePtr);
904 XXH_PUBLIC_API XXH_errorcode XXH3_128bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed);
905 XXH_PUBLIC_API XXH_errorcode XXH3_128bits_reset_withSecret(XXH3_state_t* statePtr, const void* secr…
907 XXH_PUBLIC_API XXH_errorcode XXH3_128bits_update (XXH3_state_t* statePtr, const void* input, size_t…
908 XXH_PUBLIC_API XXH128_hash_t XXH3_128bits_digest (const XXH3_state_t* statePtr);
1209 XXH3_64bits_reset_withSecretandSeed(XXH3_state_t* statePtr,
1214 XXH3_128bits_reset_withSecretandSeed(XXH3_state_t* statePtr,
2145 XXH_PUBLIC_API XXH_errorcode XXH32_freeState(XXH32_state_t* statePtr) in XXH32_freeState() argument
2147 XXH_free(statePtr); in XXH32_freeState()
2158 XXH_PUBLIC_API XXH_errorcode XXH32_reset(XXH32_state_t* statePtr, XXH32_hash_t seed) in XXH32_reset() argument
2167 XXH_memcpy(statePtr, &state, sizeof(state) - sizeof(state.reserved)); in XXH32_reset()
2561 XXH_PUBLIC_API XXH_errorcode XXH64_freeState(XXH64_state_t* statePtr) in XXH64_freeState() argument
2563 XXH_free(statePtr); in XXH64_freeState()
2574 XXH_PUBLIC_API XXH_errorcode XXH64_reset(XXH64_state_t* statePtr, XXH64_hash_t seed) in XXH64_reset() argument
2583 XXH_memcpy(statePtr, &state, sizeof(state) - sizeof(state.reserved64)); in XXH64_reset()
4666 XXH_PUBLIC_API XXH_errorcode XXH3_freeState(XXH3_state_t* statePtr) in XXH3_freeState() argument
4668 XXH_alignedFree(statePtr); in XXH3_freeState()
4680 XXH3_reset_internal(XXH3_state_t* statePtr, in XXH3_reset_internal() argument
4687 XXH_ASSERT(statePtr != NULL); in XXH3_reset_internal()
4689 memset((char*)statePtr + initStart, 0, initLength); in XXH3_reset_internal()
4690 statePtr->acc[0] = XXH_PRIME32_3; in XXH3_reset_internal()
4691 statePtr->acc[1] = XXH_PRIME64_1; in XXH3_reset_internal()
4692 statePtr->acc[2] = XXH_PRIME64_2; in XXH3_reset_internal()
4693 statePtr->acc[3] = XXH_PRIME64_3; in XXH3_reset_internal()
4694 statePtr->acc[4] = XXH_PRIME64_4; in XXH3_reset_internal()
4695 statePtr->acc[5] = XXH_PRIME32_2; in XXH3_reset_internal()
4696 statePtr->acc[6] = XXH_PRIME64_5; in XXH3_reset_internal()
4697 statePtr->acc[7] = XXH_PRIME32_1; in XXH3_reset_internal()
4698 statePtr->seed = seed; in XXH3_reset_internal()
4699 statePtr->useSeed = (seed != 0); in XXH3_reset_internal()
4700 statePtr->extSecret = (const unsigned char*)secret; in XXH3_reset_internal()
4702 statePtr->secretLimit = secretSize - XXH_STRIPE_LEN; in XXH3_reset_internal()
4703 statePtr->nbStripesPerBlock = statePtr->secretLimit / XXH_SECRET_CONSUME_RATE; in XXH3_reset_internal()
4708 XXH3_64bits_reset(XXH3_state_t* statePtr) in XXH3_64bits_reset() argument
4710 if (statePtr == NULL) return XXH_ERROR; in XXH3_64bits_reset()
4711 XXH3_reset_internal(statePtr, 0, XXH3_kSecret, XXH_SECRET_DEFAULT_SIZE); in XXH3_64bits_reset()
4717 XXH3_64bits_reset_withSecret(XXH3_state_t* statePtr, const void* secret, size_t secretSize) in XXH3_64bits_reset_withSecret() argument
4719 if (statePtr == NULL) return XXH_ERROR; in XXH3_64bits_reset_withSecret()
4720 XXH3_reset_internal(statePtr, 0, secret, secretSize); in XXH3_64bits_reset_withSecret()
4728 XXH3_64bits_reset_withSeed(XXH3_state_t* statePtr, XXH64_hash_t seed) in XXH3_64bits_reset_withSeed() argument
4730 if (statePtr == NULL) return XXH_ERROR; in XXH3_64bits_reset_withSeed()
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()
4740 XXH3_64bits_reset_withSecretandSeed(XXH3_state_t* statePtr, const void* secret, size_t secretSize, … in XXH3_64bits_reset_withSecretandSeed() argument
4742 if (statePtr == NULL) return XXH_ERROR; in XXH3_64bits_reset_withSecretandSeed()
4745 XXH3_reset_internal(statePtr, seed64, secret, secretSize); in XXH3_64bits_reset_withSecretandSeed()
4746 statePtr->useSeed = 1; /* always, even if seed64==0 */ in XXH3_64bits_reset_withSecretandSeed()
5385 XXH3_128bits_reset(XXH3_state_t* statePtr) in XXH3_128bits_reset() argument
5387 return XXH3_64bits_reset(statePtr); in XXH3_128bits_reset()
5392 XXH3_128bits_reset_withSecret(XXH3_state_t* statePtr, const void* secret, size_t secretSize) in XXH3_128bits_reset_withSecret() argument
5394 return XXH3_64bits_reset_withSecret(statePtr, secret, secretSize); in XXH3_128bits_reset_withSecret()
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 XXH3_128bits_reset_withSecretandSeed(XXH3_state_t* statePtr, const void* secret, size_t secretSize,… in XXH3_128bits_reset_withSecretandSeed() argument
5408 return XXH3_64bits_reset_withSecretandSeed(statePtr, secret, secretSize, seed); in XXH3_128bits_reset_withSecretandSeed()