What USEFUL bitwise operator code tricks should a developer know about?

Bit Twiddling Hacks