Searched refs:bitPosition (Results 1 – 9 of 9) sorted by relevance
108 static unsigned whichWord(unsigned bitPosition) { in whichWord() argument109 return bitPosition / APINT_BITS_PER_WORD; in whichWord()116 static unsigned whichBit(unsigned bitPosition) { in whichBit() argument117 return bitPosition % APINT_BITS_PER_WORD; in whichBit()126 static uint64_t maskBit(unsigned bitPosition) { in maskBit() argument127 return 1ULL << whichBit(bitPosition); in maskBit()156 uint64_t getWord(unsigned bitPosition) const { in getWord() argument157 return isSingleWord() ? VAL : pVal[whichWord(bitPosition)]; in getWord()962 bool operator[](unsigned bitPosition) const {963 assert(bitPosition < getBitWidth() && "Bit position out of bounds!");[all …]
168 int bitPosition = bitNumber & MOD_MASK; // bitNumber mod BITS in BitMask()169 return 1UL << bitPosition; in BitMask()
190 int bitPosition = bitNumber & MOD_MASK; // bitNumber mod BITS in BitMask()191 return 1UL << bitPosition; in BitMask()
162 int bitPosition = bitNumber & MOD_MASK; // bitNumber mod BITS in bitMask() local163 return 1L << bitPosition; in bitMask()
191 const uint32_t bitPosition = (7 - j % 8); in TEST() local193 (byteMask & (1 << bitPosition)) >> bitPosition; in TEST()
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()
66 var bitPosition = bitNumber & org.antlr.runtime.BitSet.MOD_MASK;67 return 1 << bitPosition;
169 int bitPosition = bitNumber & MOD_MASK; // bitNumber mod BITS in bitMask() local170 return 1L << bitPosition; in bitMask()
120 var bitPosition:int = bitNumber & MOD_MASK; // bitNumber mod BITS121 return 1 << bitPosition;