Home
last modified time | relevance | path

Searched refs:bitPosition (Results 1 – 5 of 5) sorted by relevance

/netbsd-src/sys/external/isc/atheros_hal/dist/ar5212/
H A Dar5212_rfgain.c95 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 Dar5212_reset.c2541 int32_t bitPosition, bitsLeft; in ar5212ModifyRfBuffer() local
2549 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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DAPInt.h120 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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DAPInt.cpp339 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument
340 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() argument
346 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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/PDB/DIA/
H A DDIARawSymbol.cpp238 RAW_METHOD_DUMP(OS, bitPosition); in dump()