Searched refs:bitPosition (Results 1 – 5 of 5) sorted by relevance
97 uint32_t bitPosition, bitsShifted; in ar5212GetRfField() local105 bitPosition = (firstBit - 1) % 8; in ar5212GetRfField()109 lastBit = (bitPosition + bitsLeft > 8) ? in ar5212GetRfField()110 (8) : (bitPosition + bitsLeft); in ar5212GetRfField()111 mask = (((1 << lastBit) - 1) ^ ((1 << bitPosition) - 1)) << in ar5212GetRfField()114 bitPosition) << bitsShifted; in ar5212GetRfField()115 bitsShifted += lastBit - bitPosition; in ar5212GetRfField()116 bitsLeft -= (8 - bitPosition); in ar5212GetRfField()117 bitPosition = 0; in ar5212GetRfField()
2681 int32_t bitPosition, bitsLeft; in ar5212ModifyRfBuffer() local2689 bitPosition = (firstBit - 1) % 8; in ar5212ModifyRfBuffer()2692 lastBit = (bitPosition + bitsLeft > 8) ? in ar5212ModifyRfBuffer()2693 8 : bitPosition + bitsLeft; in ar5212ModifyRfBuffer()2694 mask = (((1 << lastBit) - 1) ^ ((1 << bitPosition) - 1)) << in ar5212ModifyRfBuffer()2697 rfBuf[arrayEntry] |= ((tmp32 << bitPosition) << in ar5212ModifyRfBuffer()2699 bitsLeft -= 8 - bitPosition; in ar5212ModifyRfBuffer()2700 tmp32 = tmp32 >> (8 - bitPosition); in ar5212ModifyRfBuffer()2701 bitPosition = 0; in ar5212ModifyRfBuffer()
120 static unsigned whichWord(unsigned bitPosition) { in whichWord() argument121 return bitPosition / APINT_BITS_PER_WORD; in whichWord()128 static unsigned whichBit(unsigned bitPosition) { in whichBit() argument129 return bitPosition % APINT_BITS_PER_WORD; in whichBit()138 static uint64_t maskBit(unsigned bitPosition) { in maskBit() argument139 return 1ULL << whichBit(bitPosition); in maskBit()163 uint64_t getWord(unsigned bitPosition) const { in getWord() argument1117 bool operator[](unsigned bitPosition) const {1119 return (maskBit(bitPosition) & getWord(bitPosition)) != 0;1490 void flipBit(unsigned bitPosition);[all …]
340 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument342 if ((*this)[bitPosition]) clearBit(bitPosition); in flipBit()343 else setBit(bitPosition); in flipBit()360 U.VAL &= ~(mask << bitPosition); in insertBits()365 unsigned loBit = whichBit(bitPosition); in insertBits()366 unsigned loWord = whichWord(bitPosition); in insertBits()399 setBit(bitPosition + i); in insertBits()401 clearBit(bitPosition + i); in insertBits()407 assert(bitPosition < BitWidth && (numBits + bitPosition) <= BitWidth && in extractBits()413 unsigned loBit = whichBit(bitPosition); in extractBits()[all …]
239 RAW_METHOD_DUMP(OS, bitPosition); in dump()