title: How to loop bit by bit over a long long in C++
body: <p>If I have <code>long long x;</code> in c++, how can I loop over each bit in the number to check if it zero or 1?</p>
  <p>I would like to count the number of ones in the bits.</p>