Bitwise operations and tricks for masks, counting bits and set operations.
Open Bit Manipulation on ExamMaster