Tag
3 posts tagged with bit-manipulation.
Adding two integers without the + or - operators using bitwise XOR, AND, and masking in Python
Reversing a 32-bit unsigned integer using bitwise shifts and masking in Python
A Python solution that counts 1 bits by repeatedly dividing by 2