hakmem algorithm
<p>I see this hakmem algorithm:</p>

<pre><code>int pop(unsigned x) {
  unsigned n;

  n = (x &gt;&gt; 1) &amp; 0x77777777;
  x = x - n;
  n = (n &gt;&gt; 1) &amp; 0x77777777;
  x = x - n;
  n = (n &gt;&gt; 1) &amp; 0x77777777;
  x = x - n;
  x = (x + (x &gt;&gt; 4)) &amp; 0x0F0F0F0F;
  x = x * 0x01010101;
  return x &gt;&gt; 24;
}
</code></pre>

<p>Is possible change it for a long of 64 bits?</p>

<p>Thanks very much</p>
