Skip to content

Instantly share code, notes, and snippets.

@warabanshi
Created April 14, 2014 16:16
Show Gist options
  • Select an option

  • Save warabanshi/10662217 to your computer and use it in GitHub Desktop.

Select an option

Save warabanshi/10662217 to your computer and use it in GitHub Desktop.
sum = 0;
i = 0;
while ( i < 64 ) {
sum += data & 1;
data = data >> 1;
i++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment