Skip to content

Commit

Permalink
Change dispatch breakpoint to XXH3_accumulate()
Browse files Browse the repository at this point in the history
This is in preparation for an SVE implementation
  • Loading branch information
easyaspi314 authored and hzhuang1 committed Oct 9, 2022
1 parent 43ea6fd commit d12279c
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 80 deletions.
14 changes: 7 additions & 7 deletions xxh_x86dispatch.c
Expand Up @@ -459,7 +459,7 @@ XXHL64_default_##suffix(const void* XXH_RESTRICT input, size_t len) \
{ \
return XXH3_hashLong_64b_internal( \
input, len, XXH3_kSecret, sizeof(XXH3_kSecret), \
XXH3_accumulate_512_##suffix, XXH3_scrambleAcc_##suffix \
XXH3_accumulate_##suffix, XXH3_scrambleAcc_##suffix \
); \
} \
\
Expand All @@ -470,7 +470,7 @@ XXHL64_seed_##suffix(const void* XXH_RESTRICT input, size_t len, \
XXH64_hash_t seed) \
{ \
return XXH3_hashLong_64b_withSeed_internal( \
input, len, seed, XXH3_accumulate_512_##suffix, \
input, len, seed, XXH3_accumulate_##suffix, \
XXH3_scrambleAcc_##suffix, XXH3_initCustomSecret_##suffix \
); \
} \
Expand All @@ -483,7 +483,7 @@ XXHL64_secret_##suffix(const void* XXH_RESTRICT input, size_t len, \
{ \
return XXH3_hashLong_64b_internal( \
input, len, secret, secretLen, \
XXH3_accumulate_512_##suffix, XXH3_scrambleAcc_##suffix \
XXH3_accumulate_##suffix, XXH3_scrambleAcc_##suffix \
); \
} \
\
Expand All @@ -493,7 +493,7 @@ XXH_NO_INLINE target XXH_errorcode \
XXH3_update_##suffix(XXH3_state_t* state, const void* input, size_t len) \
{ \
return XXH3_update(state, (const xxh_u8*)input, len, \
XXH3_accumulate_512_##suffix, XXH3_scrambleAcc_##suffix); \
XXH3_accumulate_##suffix, XXH3_scrambleAcc_##suffix); \
} \
\
/* === XXH128 default variants === */ \
Expand All @@ -503,7 +503,7 @@ XXHL128_default_##suffix(const void* XXH_RESTRICT input, size_t len) \
{ \
return XXH3_hashLong_128b_internal( \
input, len, XXH3_kSecret, sizeof(XXH3_kSecret), \
XXH3_accumulate_512_##suffix, XXH3_scrambleAcc_##suffix \
XXH3_accumulate_##suffix, XXH3_scrambleAcc_##suffix \
); \
} \
\
Expand All @@ -515,7 +515,7 @@ XXHL128_secret_##suffix(const void* XXH_RESTRICT input, size_t len, \
{ \
return XXH3_hashLong_128b_internal( \
input, len, (const xxh_u8*)secret, secretLen, \
XXH3_accumulate_512_##suffix, XXH3_scrambleAcc_##suffix); \
XXH3_accumulate_##suffix, XXH3_scrambleAcc_##suffix); \
} \
\
/* === XXH128 Seeded variants === */ \
Expand All @@ -525,7 +525,7 @@ XXHL128_seed_##suffix(const void* XXH_RESTRICT input, size_t len, \
XXH64_hash_t seed) \
{ \
return XXH3_hashLong_128b_withSeed_internal(input, len, seed, \
XXH3_accumulate_512_##suffix, XXH3_scrambleAcc_##suffix, \
XXH3_accumulate_##suffix, XXH3_scrambleAcc_##suffix, \
XXH3_initCustomSecret_##suffix); \
}

Expand Down

0 comments on commit d12279c

Please sign in to comment.