Lines Matching full:bitposition
575 void APInt::setBit(unsigned bitPosition) {
577 VAL |= maskBit(bitPosition);
579 pVal[whichWord(bitPosition)] |= maskBit(bitPosition);
582 /// Set the given bit to 0 whose position is given as "bitPosition".
584 void APInt::clearBit(unsigned bitPosition) {
586 VAL &= ~maskBit(bitPosition);
588 pVal[whichWord(bitPosition)] &= ~maskBit(bitPosition);
594 /// as "bitPosition".
596 void APInt::flipBit(unsigned bitPosition) {
597 assert(bitPosition < BitWidth && "Out of the bit-width range!");
598 if ((*this)[bitPosition]) clearBit(bitPosition);
599 else setBit(bitPosition);