int bitCount(unsigned int a){ int count = 0; while (a != 0) { count += a & 0x01; a >>= 1; } return count;}
Post a Comment
No comments:
Post a Comment