add XXH_NOESCAPE

This commit is contained in:
Yann Collet
2025-01-21 20:34:45 -08:00
committed by Yann Collet
parent c3e587a1ca
commit 71e797bd8c
3 changed files with 3 additions and 3 deletions

View File

@@ -342,7 +342,7 @@ static XSUM_U32 XSUM_rand(void)
* Technically, XXH3_64bits_update is identical to XXH3_128bits_update as of * Technically, XXH3_64bits_update is identical to XXH3_128bits_update as of
* v0.8.0, but we treat them as separate. * v0.8.0, but we treat them as separate.
*/ */
typedef XXH_errorcode (*XSUM_XXH3_update_t)(XXH3_state_t* state, const void* input, size_t length); typedef XXH_errorcode (*XSUM_XXH3_update_t)(XXH_NOESCAPE XXH3_state_t* state, XXH_NOESCAPE const void* input, size_t length);
/* /*
* Runs the passed XXH3_update variant on random lengths. This is to test the * Runs the passed XXH3_update variant on random lengths. This is to test the

View File

@@ -632,7 +632,7 @@ typedef XXH128_hash_t (*XXH3_dispatchx86_hashLong128_default)(XXH_NOESCAPE const
typedef XXH128_hash_t (*XXH3_dispatchx86_hashLong128_withSeed)(XXH_NOESCAPE const void* XXH_RESTRICT, size_t, XXH64_hash_t); typedef XXH128_hash_t (*XXH3_dispatchx86_hashLong128_withSeed)(XXH_NOESCAPE const void* XXH_RESTRICT, size_t, XXH64_hash_t);
typedef XXH128_hash_t (*XXH3_dispatchx86_hashLong128_withSecret)(XXH_NOESCAPE const void* XXH_RESTRICT, size_t, const void* XXH_RESTRICT, size_t); typedef XXH128_hash_t (*XXH3_dispatchx86_hashLong128_withSecret)(XXH_NOESCAPE const void* XXH_RESTRICT, size_t, XXH_NOESCAPE const void* XXH_RESTRICT, size_t);
typedef struct { typedef struct {
XXH3_dispatchx86_hashLong128_default hashLong128_default; XXH3_dispatchx86_hashLong128_default hashLong128_default;

View File

@@ -1363,7 +1363,7 @@ XXH_PUBLIC_API XXH_errorcode XXH3_64bits_update (XXH_NOESCAPE XXH3_state_t* stat
* *
* @see @ref streaming_example "Streaming Example" * @see @ref streaming_example "Streaming Example"
*/ */
XXH_PUBLIC_API XXH_PUREF XXH64_hash_t XXH3_64bits_digest (XXH_NOESCAPE const XXH3_state_t* statePtr); XXH_PUBLIC_API XXH_PUREF XXH64_hash_t XXH3_64bits_digest (XXH_NOESCAPE const XXH3_state_t* statePtr);
#endif /* !XXH_NO_STREAM */ #endif /* !XXH_NO_STREAM */
/* note : canonical representation of XXH3 is the same as XXH64 /* note : canonical representation of XXH3 is the same as XXH64