The "brevity"* of your post could be interpreted as laziness or rudeness by some. You could at least explain how you came upon this code instead of having us have to search for it ourselves.
*To anyone else reading, what's a word like "brevity" or "terseness", but with only negative connotations?
Laconic, perhaps? But that seems more neutral.
0x4 << 16 means take the hex number 4 (which is 100 binary) and shift left by 16 bits giving 1000000000000000000 which is 0x40000 (hex). So mask is set to 0x40000.