Commit 5fdc5e5c authored by antirez's avatar antirez
Browse files

Drop not needed part from #7194.

parent 154e735c
......@@ -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) > 0UL) {
while ((s >>= 1) > 0) {
mask ^= (mask << s);
v = ((v >> s) & mask) | ((v << s) & ~mask);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment