Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6253180a
Commit
6253180a
authored
Aug 19, 2013
by
antirez
Browse files
Fixed type in dict.c comment: 265 -> 256.
parent
1c754084
Changes
1
Show whitespace changes
Inline
Side-by-side
src/dict.c
View file @
6253180a
...
...
@@ -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
6
5
hash
=
(
hash
+
(
hash
<<
3
))
+
(
hash
<<
8
);
// hash * 25
6
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