Count number of bits in a 64-bit (long, big) integer?
- by Jeff Meatball Yang
I have read through this SO question about 32-bits, but what about 64-bit numbers? Should I just mask the upper and lower 4 bytes, perform the count on the 32-bits and then add them together?