Searched refs:bitPosition (Results 1 - 4 of 4) sorted by relevance

/freebsd-10.3-release/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_rfgain.c95 uint32_t bitPosition, bitsShifted; local
103 bitPosition = (firstBit - 1) % 8;
107 lastBit = (bitPosition + bitsLeft > 8) ?
108 (8) : (bitPosition + bitsLeft);
109 mask = (((1 << lastBit) - 1) ^ ((1 << bitPosition) - 1)) <<
112 bitPosition) << bitsShifted;
113 bitsShifted += lastBit - bitPosition;
114 bitsLeft -= (8 - bitPosition);
115 bitPosition = 0;
H A Dar5212_reset.c2676 int32_t bitPosition, bitsLeft; local
2684 bitPosition = (firstBit - 1) % 8;
2687 lastBit = (bitPosition + bitsLeft > 8) ?
2688 8 : bitPosition + bitsLeft;
2689 mask = (((1 << lastBit) - 1) ^ ((1 << bitPosition) - 1)) <<
2692 rfBuf[arrayEntry] |= ((tmp32 << bitPosition) <<
2694 bitsLeft -= 8 - bitPosition;
2695 tmp32 = tmp32 >> (8 - bitPosition);
2696 bitPosition = 0;
/freebsd-10.3-release/contrib/llvm/include/llvm/ADT/
H A DAPInt.h108 static unsigned whichWord(unsigned bitPosition) { argument
109 return bitPosition / APINT_BITS_PER_WORD;
116 static unsigned whichBit(unsigned bitPosition) { argument
117 return bitPosition % APINT_BITS_PER_WORD;
122 /// \returns a uint64_t with only bit at "whichBit(bitPosition)" set
126 static uint64_t maskBit(unsigned bitPosition) { argument
127 return 1ULL << whichBit(bitPosition);
156 uint64_t getWord(unsigned bitPosition) const {
157 return isSingleWord() ? VAL : pVal[whichWord(bitPosition)];
947 /// \returns the bit value at bitPosition
[all...]
/freebsd-10.3-release/contrib/llvm/lib/Support/
H A DAPInt.cpp583 void APInt::setBit(unsigned bitPosition) { argument
585 VAL |= maskBit(bitPosition);
587 pVal[whichWord(bitPosition)] |= maskBit(bitPosition);
590 /// Set the given bit to 0 whose position is given as "bitPosition".
592 void APInt::clearBit(unsigned bitPosition) { argument
594 VAL &= ~maskBit(bitPosition);
596 pVal[whichWord(bitPosition)] &= ~maskBit(bitPosition);
602 /// as "bitPosition"
604 flipBit(unsigned bitPosition) argument
[all...]

Completed in 104 milliseconds