Hello
If I have a var for example:
And I want the number of bits that are true, is it possible to do this without checking every bit one by one?Code:var = 0x0f8a700f
This is a discussion on binary - get amount 1's within the C Programming forums, part of the General Programming Boards category; Hello If I have a var for example: Code: var = 0x0f8a700f And I want the number of bits that ...
Hello
If I have a var for example:
And I want the number of bits that are true, is it possible to do this without checking every bit one by one?Code:var = 0x0f8a700f
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
Thank you, should have google it better, before asking...