Confirm fn_00170 (XXH3_hashLong_128b_default)
Batch #17463 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_00170 XXH3_hashLong_128b_default: logic confirmed by peer review (already on main) Peer-reviewed-by: Yommy, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
920ba8f3af
commit
31bc04d3b6
1 changed files with 1 additions and 1 deletions
|
|
@ -493,9 +493,9 @@ namespace {
|
|||
HashLongInternalLoop(acc, static_cast<const std::uint8_t*>(input), length, secret, secretSize, f_acc512, f_scramble);
|
||||
|
||||
XXH128_hash_t h128;
|
||||
h128.low64 = XXH3_mergeAccs(acc, secret + XXH_SECRET_MERGEACCS_START, static_cast<std::uint64_t>(length) * XXH_PRIME64_1);
|
||||
h128.high64 = XXH3_mergeAccs(acc, secret + secretSize - sizeof(acc) - XXH_SECRET_MERGEACCS_START,
|
||||
~(static_cast<std::uint64_t>(length) * XXH_PRIME64_2));
|
||||
h128.low64 = XXH3_mergeAccs(acc, secret + XXH_SECRET_MERGEACCS_START, static_cast<std::uint64_t>(length) * XXH_PRIME64_1);
|
||||
return h128;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue