Drop not needed part from #7194.
This commit is contained in:
parent
897a360d06
commit
d1af82a883
@ -768,7 +768,7 @@ dictEntry *dictGetFairRandomKey(dict *d) {
|
|||||||
static unsigned long rev(unsigned long v) {
|
static unsigned long rev(unsigned long v) {
|
||||||
unsigned long s = CHAR_BIT * sizeof(v); // bit size; must be power of 2
|
unsigned long s = CHAR_BIT * sizeof(v); // bit size; must be power of 2
|
||||||
unsigned long mask = ~0UL;
|
unsigned long mask = ~0UL;
|
||||||
while ((s >>= 1) > 0UL) {
|
while ((s >>= 1) > 0) {
|
||||||
mask ^= (mask << s);
|
mask ^= (mask << s);
|
||||||
v = ((v >> s) & mask) | ((v << s) & ~mask);
|
v = ((v >> s) & mask) | ((v << s) & ~mask);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user