Skip to content

Commit 043fe3c

Browse files
Abseil Teamcopybara-github
authored andcommitted
Update LowLevelHash comment regarding number of hash state variables.
PiperOrigin-RevId: 671385555 Change-Id: Ic98587062de121f127a56fecf2c494a82c6350ba
1 parent f7f3168 commit 043fe3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

absl/hash/internal/low_level_hash.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ uint64_t LowLevelHashLenGt16(const void* data, size_t len, uint64_t seed,
4040

4141
if (len > 64) {
4242
// If we have more than 64 bytes, we're going to handle chunks of 64
43-
// bytes at a time. We're going to build up two separate hash states
44-
// which we will then hash together.
43+
// bytes at a time. We're going to build up four separate hash states
44+
// which we will then hash together. This avoids short dependency chains.
4545
uint64_t duplicated_state0 = current_state;
4646
uint64_t duplicated_state1 = current_state;
4747
uint64_t duplicated_state2 = current_state;

0 commit comments

Comments
 (0)