more futzing with whitespace in bit counter

This commit is contained in:
Dan Buch 2011-06-18 19:39:37 -04:00
parent f20b8ca138
commit b447c7a61a

View File

@ -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;
} }