Searched refs:bitPosition (Results 1 – 5 of 5) sorted by relevance
95 uint32_t bitPosition, bitsShifted; in ar5212GetRfField() local103 bitPosition = (firstBit - 1) % 8; in ar5212GetRfField()107 lastBit = (bitPosition + bitsLeft > 8) ? in ar5212GetRfField()108 (8) : (bitPosition + bitsLeft); in ar5212GetRfField()109 mask = (((1 << lastBit) - 1) ^ ((1 << bitPosition) - 1)) << in ar5212GetRfField()112 bitPosition) << bitsShifted; in ar5212GetRfField()113 bitsShifted += lastBit - bitPosition; in ar5212GetRfField()114 bitsLeft -= (8 - bitPosition); in ar5212GetRfField()115 bitPosition = 0; in ar5212GetRfField()
2541 int32_t bitPosition, bitsLeft; in ar5212ModifyRfBuffer() local2549 bitPosition = (firstBit - 1) % 8; in ar5212ModifyRfBuffer()2552 lastBit = (bitPosition + bitsLeft > 8) ? in ar5212ModifyRfBuffer()2553 8 : bitPosition + bitsLeft; in ar5212ModifyRfBuffer()2554 mask = (((1 << lastBit) - 1) ^ ((1 << bitPosition) - 1)) << in ar5212ModifyRfBuffer()2557 rfBuf[arrayEntry] |= ((tmp32 << bitPosition) << in ar5212ModifyRfBuffer()2559 bitsLeft -= 8 - bitPosition; in ar5212ModifyRfBuffer()2560 tmp32 = tmp32 >> (8 - bitPosition); in ar5212ModifyRfBuffer()2561 bitPosition = 0; in ar5212ModifyRfBuffer()
120 static unsigned whichWord(unsigned bitPosition) {121 return bitPosition / APINT_BITS_PER_WORD;128 static unsigned whichBit(unsigned bitPosition) {129 return bitPosition % APINT_BITS_PER_WORD;138 static uint64_t maskBit(unsigned bitPosition) {139 return 1ULL << whichBit(bitPosition);163 uint64_t getWord(unsigned bitPosition) const {164 return isSingleWord() ? U.VAL : U.pVal[whichWord(bitPosition)];1137 bool operator[](unsigned bitPosition) const {1138 assert(bitPosition < getBitWidth() && "Bit position out of bounds!");[all …]
339 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument340 assert(bitPosition < BitWidth && "Out of the bit-width range!"); in flipBit()341 setBitVal(bitPosition, !(*this)[bitPosition]); in flipBit()344 void APInt::insertBits(const APInt &subBits, unsigned bitPosition) { in insertBits() argument346 assert(0 < subBitWidth && (subBitWidth + bitPosition) <= BitWidth && in insertBits()358 U.VAL &= ~(mask << bitPosition); in insertBits()359 U.VAL |= (subBits.U.VAL << bitPosition); in insertBits()363 unsigned loBit = whichBit(bitPosition); in insertBits()364 unsigned loWord = whichWord(bitPosition); in insertBits()365 unsigned hi1Word = whichWord(bitPosition + subBitWidth - 1); in insertBits()[all …]
238 RAW_METHOD_DUMP(OS, bitPosition); in dump()