Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8ea906a3
Commit
8ea906a3
authored
Mar 16, 2019
by
antirez
Browse files
HyperLogLog: fix comment in hllCount().
parent
e216ceaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hyperloglog.c
View file @
8ea906a3
...
@@ -1014,8 +1014,8 @@ uint64_t hllCount(struct hllhdr *hdr, int *invalid) {
...
@@ -1014,8 +1014,8 @@ uint64_t hllCount(struct hllhdr *hdr, int *invalid) {
double
m
=
HLL_REGISTERS
;
double
m
=
HLL_REGISTERS
;
double
E
;
double
E
;
int
j
;
int
j
;
/* Note that reghisto could be just HLL_Q+
1
, becuase
this is the
/* Note that reghisto
size
could be just HLL_Q+
2
, becuase
HLL_Q+1 is
* maximum frequency of the "000...1" sequence the hash function is
*
the
maximum frequency of the "000...1" sequence the hash function is
* able to return. However it is slow to check for sanity of the
* able to return. However it is slow to check for sanity of the
* input: instead we history array at a safe size: overflows will
* input: instead we history array at a safe size: overflows will
* just write data to wrong, but correctly allocated, places. */
* just write data to wrong, but correctly allocated, places. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment