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
3bacf4c7
Commit
3bacf4c7
authored
Aug 19, 2013
by
antirez
Browse files
Revert "Fixed type in dict.c comment: 265 -> 256."
This reverts commit
19de8e46
.
parent
19de8e46
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
3bacf4c7
...
...
@@ -534,7 +534,7 @@ long long dictFingerprint(dict *d) {
/* For the hashing step we use Tomas Wang's 64 bit integer hash. */
hash
=
(
~
hash
)
+
(
hash
<<
21
);
// hash = (hash << 21) - hash - 1;
hash
=
hash
^
(
hash
>>
24
);
hash
=
(
hash
+
(
hash
<<
3
))
+
(
hash
<<
8
);
// hash * 2
5
6
hash
=
(
hash
+
(
hash
<<
3
))
+
(
hash
<<
8
);
// hash * 26
5
hash
=
hash
^
(
hash
>>
14
);
hash
=
(
hash
+
(
hash
<<
2
))
+
(
hash
<<
4
);
// hash * 21
hash
=
hash
^
(
hash
>>
28
);
...
...
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