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
5fdc5e5c
Commit
5fdc5e5c
authored
May 05, 2020
by
antirez
Browse files
Drop not needed part from #7194.
parent
154e735c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
5fdc5e5c
...
...
@@ -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