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()
2677 int32_t bitPosition, bitsLeft; in ar5212ModifyRfBuffer() local2685 bitPosition = (firstBit - 1) % 8; in ar5212ModifyRfBuffer()2688 lastBit = (bitPosition + bitsLeft > 8) ? in ar5212ModifyRfBuffer()2689 8 : bitPosition + bitsLeft; in ar5212ModifyRfBuffer()2690 mask = (((1 << lastBit) - 1) ^ ((1 << bitPosition) - 1)) << in ar5212ModifyRfBuffer()2693 rfBuf[arrayEntry] |= ((tmp32 << bitPosition) << in ar5212ModifyRfBuffer()2695 bitsLeft -= 8 - bitPosition; in ar5212ModifyRfBuffer()2696 tmp32 = tmp32 >> (8 - bitPosition); in ar5212ModifyRfBuffer()2697 bitPosition = 0; in ar5212ModifyRfBuffer()
1015 bool operator[](unsigned bitPosition) const {1017 return (maskBit(bitPosition) & getWord(bitPosition)) != 0;1412 void flipBit(unsigned bitPosition);1421 void insertBits(const APInt &SubBits, unsigned bitPosition);1884 static unsigned whichWord(unsigned bitPosition) {1885 return bitPosition / APINT_BITS_PER_WORD;1889 static unsigned whichBit(unsigned bitPosition) {1890 return bitPosition % APINT_BITS_PER_WORD;1899 static uint64_t maskBit(unsigned bitPosition) {1900 return 1ULL << whichBit(bitPosition);[all …]
363 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument365 setBitVal(bitPosition, !(*this)[bitPosition]); in flipBit()385 U.VAL &= ~(mask << bitPosition); in insertBits()390 unsigned loBit = whichBit(bitPosition); in insertBits()430 U.VAL &= ~(maskBits << bitPosition); in insertBits()431 U.VAL |= subBits << bitPosition; in insertBits()435 unsigned loBit = whichBit(bitPosition); in insertBits()454 assert(bitPosition < BitWidth && (numBits + bitPosition) <= BitWidth && in extractBits()460 unsigned loBit = whichBit(bitPosition); in extractBits()491 assert(bitPosition < BitWidth && (numBits + bitPosition) <= BitWidth && in extractBitsAsZExtValue()[all …]
238 RAW_METHOD_DUMP(OS, bitPosition); in dump()