more futzing with whitespace in bit counter
This commit is contained in:
parent
f20b8ca138
commit
b447c7a61a
@ -19,7 +19,7 @@ int get_bit_count(unsigned int x)
|
|||||||
int i;
|
int i;
|
||||||
int shift; /* Number of positions to shift to right*/
|
int shift; /* Number of positions to shift to right*/
|
||||||
for (i = 0, shift = 1; i < 5; i++, shift *= 2) {
|
for (i = 0, shift = 1; i < 5; i++, shift *= 2) {
|
||||||
x = (x & mask[i])+ ((x >> shift) & mask[i]);
|
x = (x & mask[i]) + ((x >> shift) & mask[i]);
|
||||||
}
|
}
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user