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
d1af82a8
Commit
d1af82a8
authored
May 05, 2020
by
antirez
Browse files
Drop not needed part from #7194.
parent
897a360d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
d1af82a8
...
...
@@ -768,7 +768,7 @@ dictEntry *dictGetFairRandomKey(dict *d) {
static unsigned long rev(unsigned long v) {
unsigned long s = CHAR_BIT * sizeof(v); // bit size; must be power of 2
unsigned long mask = ~0UL;
while
((
s
>>=
1
)
>
0
UL
)
{
while ((s >>= 1) > 0) {
mask ^= (mask << s);
v = ((v >> s) & mask) | ((v << s) & ~mask);
}
...
...
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