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()
2679 int32_t bitPosition, bitsLeft; in ar5212ModifyRfBuffer() local2687 bitPosition = (firstBit - 1) % 8; in ar5212ModifyRfBuffer()2690 lastBit = (bitPosition + bitsLeft > 8) ? in ar5212ModifyRfBuffer()2691 8 : bitPosition + bitsLeft; in ar5212ModifyRfBuffer()2692 mask = (((1 << lastBit) - 1) ^ ((1 << bitPosition) - 1)) << in ar5212ModifyRfBuffer()2695 rfBuf[arrayEntry] |= ((tmp32 << bitPosition) << in ar5212ModifyRfBuffer()2697 bitsLeft -= 8 - bitPosition; in ar5212ModifyRfBuffer()2698 tmp32 = tmp32 >> (8 - bitPosition); in ar5212ModifyRfBuffer()2699 bitPosition = 0; in ar5212ModifyRfBuffer()
115 static unsigned whichWord(unsigned bitPosition) {116 return bitPosition / APINT_BITS_PER_WORD;123 static unsigned whichBit(unsigned bitPosition) {124 return bitPosition % APINT_BITS_PER_WORD;133 static uint64_t maskBit(unsigned bitPosition) {134 return 1ULL << whichBit(bitPosition);158 uint64_t getWord(unsigned bitPosition) const {1137 bool operator[](unsigned bitPosition) const {1139 return (maskBit(bitPosition) & getWord(bitPosition)) != 0;1560 void flipBit(unsigned bitPosition);[all …]
339 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument341 setBitVal(bitPosition, !(*this)[bitPosition]); in flipBit()358 U.VAL &= ~(mask << bitPosition); in insertBits()363 unsigned loBit = whichBit(bitPosition); in insertBits()403 U.VAL &= ~(maskBits << bitPosition); in insertBits()404 U.VAL |= subBits << bitPosition; in insertBits()408 unsigned loBit = whichBit(bitPosition); in insertBits()428 assert(bitPosition < BitWidth && (numBits + bitPosition) <= BitWidth && in extractBits()434 unsigned loBit = whichBit(bitPosition); in extractBits()466 assert(bitPosition < BitWidth && (numBits + bitPosition) <= BitWidth && in extractBitsAsZExtValue()[all …]
238 RAW_METHOD_DUMP(OS, bitPosition); in dump()