bit mask

Computing Dictionary

bit mask definition

programming
A pattern of binary values which is combined with some value using bitwise AND with the result that bits in the value in positions where the mask is zero are also set to zero. For example, if, in C, we want to test if bits 0 or 2 of x are set, we can write
int mask = 5; /* binary 101 */
if (x & mask) ...
A bit mask might also be used to set certain bits using bitwise OR, or to invert them using bitwise exclusive OR.
(1995-05-12)

The Free On-line Dictionary of Computing, © Denis Howe 2010 http://foldoc.org
Cite This Source
Explore Dictionary.com
Previous Definition: bit mapped image
Next Definition: bit much
Words Near: bit mask
More from Thesaurus.com
Synonyms and Antonyms for bit mask
More from Reference.com
Search for articles containing bit mask
More from Dictionary.com Translator
Dictionary.com Word FAQs

Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.

Copyright © 2014 Dictionary.com, LLC. All rights reserved.
  • Please Login or Sign Up to use the Recent Searches feature