Bitoperation Hacks

# Various bit operation hacks

Examples:

- Compute the minimum (min) or maximum (max) of two integers without branching
- Determining if an integer is a power of 2
- Reverse the bits in a byte with 3 operations (64-bit multiply and modulus division):

http://graphics.stanford.edu/~seander/bithacks.html#OperationCounting

page revision: 0, last edited: 17 Dec 2007 03:37