Lines Matching defs:Mask
232 // Mask off previous bits.
459 /// setBitsInMask - Add '1' bits from Mask to this vector. Don't resize.
460 /// This computes "*this |= Mask".
461 void setBitsInMask(const uint32_t *Mask, unsigned MaskWords = ~0u) {
463 applyMask<true, false>(Mask, MaskWords);
465 getPointer()->setBitsInMask(Mask, MaskWords);
468 /// clearBitsInMask - Clear any bits in this vector that are set in Mask.
469 /// Don't resize. This computes "*this &= ~Mask".
470 void clearBitsInMask(const uint32_t *Mask, unsigned MaskWords = ~0u) {
472 applyMask<false, false>(Mask, MaskWords);
474 getPointer()->clearBitsInMask(Mask, MaskWords);
477 /// setBitsNotInMask - Add a bit to this vector for every '0' bit in Mask.
478 /// Don't resize. This computes "*this |= ~Mask".
479 void setBitsNotInMask(const uint32_t *Mask, unsigned MaskWords = ~0u) {
481 applyMask<true, true>(Mask, MaskWords);
483 getPointer()->setBitsNotInMask(Mask, MaskWords);
486 /// clearBitsNotInMask - Clear a bit in this vector for every '0' bit in Mask.
487 /// Don't resize. This computes "*this &= Mask".
488 void clearBitsNotInMask(const uint32_t *Mask, unsigned MaskWords = ~0u) {
490 applyMask<false, true>(Mask, MaskWords);
492 getPointer()->clearBitsNotInMask(Mask, MaskWords);
497 void applyMask(const uint32_t *Mask, unsigned MaskWords) {
500 uint64_t M = Mask[0] | (uint64_t(Mask[1]) << 32);
505 uint32_t M = Mask[0];