Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uint64_t countBits(uint64_t input){
- uint64_t counter;
- for(counter=0; input > 0; counter++)
- input &= input - 1; /*clear the set lsb*/
- return counter;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement