Re:Counting set bits in an interesting way
by a_e_k on Saturday April 30, 2022 @01:46PM
(#31217754)
Right. And the reason that zeroes out the least significant bit is because subtracting one just borrows up to it. E.g., for n = 464:
[ Parent
| on HN ]
There are no comments on this comment yet.