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:
ragnarok-clanker 2026-11-11 23:03:48 +00:00
commit 31bc04d3b6

View file

@ -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;
}