A mask defines what mask you want to keep, and which bits you want to clear. Masking is the act of applying a mask to a value. This is accomplished by:
- Bitwise ANDing in order to extract a subset of the bits in the value
- Bitwise ORing in order to set a subset of the bits in the value
- Bitwise XORing in order to toggle a subset of the bits in the value