Searched refs:bitPosition (Results 1 – 5 of 5) sorted by relevance
/freebsd/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_rfgain.c | 95 uint32_t bitPosition, bitsShifted; in ar5212GetRfField() local 103 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()
|
H A D | ar5212_reset.c | 2677 int32_t bitPosition, bitsLeft; in ar5212ModifyRfBuffer() local 2685 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()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APInt.h | 1023 bool operator[](unsigned bitPosition) const { 1024 assert(bitPosition < getBitWidth() && "Bit position out of bounds!"); 1025 return (maskBit(bitPosition) & getWord(bitPosition)) != 0; 1427 void flipBit(unsigned bitPosition); 1436 void insertBits(const APInt &SubBits, unsigned bitPosition); 1437 void insertBits(uint64_t SubBits, unsigned bitPosition, unsigned numBits); 1440 APInt extractBits(unsigned numBits, unsigned bitPosition) const; 1441 uint64_t extractBitsAsZExtValue(unsigned numBits, unsigned bitPosition) const; 1910 static unsigned whichWord(unsigned bitPosition) { 1911 return bitPosition / APINT_BITS_PER_WORD; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | APInt.cpp | 363 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument 364 assert(bitPosition < BitWidth && "Out of the bit-width range!"); in flipBit() 365 setBitVal(bitPosition, !(*this)[bitPosition]); in flipBit() 368 void APInt::insertBits(const APInt &subBits, unsigned bitPosition) { in insertBits() argument 370 assert((subBitWidth + bitPosition) <= BitWidth && "Illegal bit insertion"); in insertBits() 385 U.VAL &= ~(mask << bitPosition); in insertBits() 386 U.VAL |= (subBits.U.VAL << bitPosition); in insertBits() 390 unsigned loBit = whichBit(bitPosition); in insertBits() 391 unsigned loWord = whichWord(bitPosition); in insertBits() 392 unsigned hi1Word = whichWord(bitPosition + subBitWidth - 1); in insertBits() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/DIA/ |
H A D | DIARawSymbol.cpp | 238 RAW_METHOD_DUMP(OS, bitPosition); in dump()
|