Skip to content

Commit

Permalink
fixup comment about loop
Browse files Browse the repository at this point in the history
Signed-off-by: mwish <[email protected]>
  • Loading branch information
mapleFU committed Jul 31, 2024
1 parent 751bce4 commit 4ea2bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hyperloglog.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ int hllPatLen(unsigned char *ele, size_t elesize, long *regp) {
hash = MurmurHash64A(ele, elesize, 0xadc83b19ULL);
index = hash & HLL_P_MASK; /* Register index. */
hash >>= HLL_P; /* Remove bits used to address the register. */
hash |= ((uint64_t)1 << HLL_Q); /* Make sure the loop terminates
hash |= ((uint64_t)1 << HLL_Q); /* Make sure ctz will not get undefined results
and count will be <= Q+1. */
/* Initialized to 1 since we count the "00000...1" pattern. */
count = 1 + __builtin_ctzll(hash);
Expand Down

0 comments on commit 4ea2bd3

Please sign in to comment.