Lines Matching defs:bitPosition
588 void APInt::setBit(unsigned bitPosition) {
590 VAL |= maskBit(bitPosition);
592 pVal[whichWord(bitPosition)] |= maskBit(bitPosition);
595 /// Set the given bit to 0 whose position is given as "bitPosition".
597 void APInt::clearBit(unsigned bitPosition) {
599 VAL &= ~maskBit(bitPosition);
601 pVal[whichWord(bitPosition)] &= ~maskBit(bitPosition);
607 /// as "bitPosition".
609 void APInt::flipBit(unsigned bitPosition) {
610 assert(bitPosition < BitWidth && "Out of the bit-width range!");
611 if ((*this)[bitPosition]) clearBit(bitPosition);
612 else setBit(bitPosition);