In computer science, a mask is data that is used for bitwise operations, particularly in a bit field.
Using a mask, multiple bits in a byte, nibble, word (etc.) can be set either on, off or inverted from on to off (or vice versa) in a single bitwise operation.
Other related articles:
... To create a hashing function for a hash table often a function is used that has a large domain ... To create an index from the output of the function, a modulo can be taken to reduce the size of the domain to match the size of the array however, it is often faster on many processors to restrict the size of the hash table to powers of two sizes and use a bit mask instead ...
Famous quotes containing the word mask:
“In the event of an oxygen shortage on airplanes, mothers of young children are always reminded to put on their own oxygen mask first, to better assist the children with theirs. The same tactic is necessary on terra firma. Theres no way of sustaining our children if we dont first rescue ourselves. I dont call that selfish behavior. I call it love.”
—Joyce Maynard (20th century)