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
0abe98cb
Commit
0abe98cb
authored
Dec 23, 2013
by
zhanghailei
Committed by
antirez
Mar 11, 2014
Browse files
According to context,the size should be 16 rather than 64
parent
a0ea8f23
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
0abe98cb
...
@@ -695,7 +695,7 @@ static unsigned long rev(unsigned long v) {
...
@@ -695,7 +695,7 @@ static unsigned long rev(unsigned long v) {
* (where SIZE-1 is always the mask that is equivalent to taking the rest
* (where SIZE-1 is always the mask that is equivalent to taking the rest
* of the division between the Hash of the key and SIZE).
* of the division between the Hash of the key and SIZE).
*
*
* For example if the current hash table size is 6
4
, the mask is
* For example if the current hash table size is
1
6, the mask is
* (in binary) 1111. The position of a key in the hash table will be always
* (in binary) 1111. The position of a key in the hash table will be always
* the last four bits of the hash output, and so forth.
* the last four bits of the hash output, and so forth.
*
*
...
...
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