SHARE
TWEET

Untitled

a guest Aug 17th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. uint64_t countBits(uint64_t input){
  2. uint64_t counter;
  3. for(counter=0; input > 0; counter++)
  4.     input &= input - 1; /*clear the set lsb*/
  5. return counter;
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top