Lines Matching defs:Mask
181 // Mask off previous bits.
257 BitWord Mask = EMask - IMask;
258 Bits[I / BITWORD_SIZE] |= Mask;
295 BitWord Mask = EMask - IMask;
296 Bits[I / BITWORD_SIZE] &= ~Mask;
333 BitWord Mask = 1L << (Idx % BITWORD_SIZE);
334 return (Bits[Idx / BITWORD_SIZE] & Mask) != 0;
495 /// setBitsInMask - Add '1' bits from Mask to this vector. Don't resize.
496 /// This computes "*this |= Mask".
497 void setBitsInMask(const uint32_t *Mask, unsigned MaskWords = ~0u) {
498 applyMask<true, false>(Mask, MaskWords);
501 /// clearBitsInMask - Clear any bits in this vector that are set in Mask.
502 /// Don't resize. This computes "*this &= ~Mask".
503 void clearBitsInMask(const uint32_t *Mask, unsigned MaskWords = ~0u) {
504 applyMask<false, false>(Mask, MaskWords);
507 /// setBitsNotInMask - Add a bit to this vector for every '0' bit in Mask.
508 /// Don't resize. This computes "*this |= ~Mask".
509 void setBitsNotInMask(const uint32_t *Mask, unsigned MaskWords = ~0u) {
510 applyMask<true, true>(Mask, MaskWords);
513 /// clearBitsNotInMask - Clear a bit in this vector for every '0' bit in Mask.
514 /// Don't resize. This computes "*this &= Mask".
515 void clearBitsNotInMask(const uint32_t *Mask, unsigned MaskWords = ~0u) {
516 applyMask<false, true>(Mask, MaskWords);
559 void applyMask(const uint32_t *Mask, unsigned MaskWords) {
568 uint32_t M = *Mask++;
576 uint32_t M = *Mask++;