Searched refs:bitPosition (Results 1 – 2 of 2) sorted by relevance
111 return bitPosition / APINT_BITS_PER_WORD; in whichWord()118 static unsigned whichBit(unsigned bitPosition) { in whichBit() argument119 return bitPosition % APINT_BITS_PER_WORD; in whichBit()128 static uint64_t maskBit(unsigned bitPosition) { in maskBit() argument129 return 1ULL << whichBit(bitPosition); in maskBit()158 uint64_t getWord(unsigned bitPosition) const { in getWord() argument957 bool operator[](unsigned bitPosition) const {959 return (maskBit(bitPosition) &1224 void setBit(unsigned bitPosition);1237 void clearBit(unsigned bitPosition);[all …]
588 void APInt::setBit(unsigned bitPosition) { in setBit() argument590 VAL |= maskBit(bitPosition); in setBit()592 pVal[whichWord(bitPosition)] |= maskBit(bitPosition); in setBit()597 void APInt::clearBit(unsigned bitPosition) { in clearBit() argument599 VAL &= ~maskBit(bitPosition); in clearBit()601 pVal[whichWord(bitPosition)] &= ~maskBit(bitPosition); in clearBit()609 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument610 assert(bitPosition < BitWidth && "Out of the bit-width range!"); in flipBit()611 if ((*this)[bitPosition]) clearBit(bitPosition); in flipBit()612 else setBit(bitPosition); in flipBit()