Home
last modified time | relevance | path

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

/external/llvm/include/llvm/ADT/
DAPInt.h108 static unsigned whichWord(unsigned bitPosition) { in whichWord() argument
109 return bitPosition / APINT_BITS_PER_WORD; in whichWord()
116 static unsigned whichBit(unsigned bitPosition) { in whichBit() argument
117 return bitPosition % APINT_BITS_PER_WORD; in whichBit()
126 static uint64_t maskBit(unsigned bitPosition) { in maskBit() argument
127 return 1ULL << whichBit(bitPosition); in maskBit()
156 uint64_t getWord(unsigned bitPosition) const { in getWord() argument
157 return isSingleWord() ? VAL : pVal[whichWord(bitPosition)]; in getWord()
944 bool operator[](unsigned bitPosition) const {
945 assert(bitPosition < getBitWidth() && "Bit position out of bounds!");
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DBitSet.cs168 int bitPosition = bitNumber & MOD_MASK; // bitNumber mod BITS in BitMask()
169 return 1UL << bitPosition; in BitMask()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DBitSet.cs190 int bitPosition = bitNumber & MOD_MASK; // bitNumber mod BITS in BitMask()
191 return 1UL << bitPosition; in BitMask()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DBitSet.java162 int bitPosition = bitNumber & MOD_MASK; // bitNumber mod BITS in bitMask() local
163 return 1L << bitPosition; in bitMask()
/external/chromium_org/third_party/webrtc/modules/rtp_rtcp/test/testFec/
Dtest_fec.cc195 const uint32_t bitPosition = (7 - j % 8); in TEST() local
197 (byteMask & (1 << bitPosition)) >> bitPosition; in TEST()
/external/llvm/lib/Support/
DAPInt.cpp584 void APInt::setBit(unsigned bitPosition) { in setBit() argument
586 VAL |= maskBit(bitPosition); in setBit()
588 pVal[whichWord(bitPosition)] |= maskBit(bitPosition); in setBit()
593 void APInt::clearBit(unsigned bitPosition) { in clearBit() argument
595 VAL &= ~maskBit(bitPosition); in clearBit()
597 pVal[whichWord(bitPosition)] &= ~maskBit(bitPosition); in clearBit()
605 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument
606 assert(bitPosition < BitWidth && "Out of the bit-width range!"); in flipBit()
607 if ((*this)[bitPosition]) clearBit(bitPosition); in flipBit()
608 else setBit(bitPosition); in flipBit()
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
DBitSet.js66 var bitPosition = bitNumber & org.antlr.runtime.BitSet.MOD_MASK;
67 return 1 << bitPosition;
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/
DBitSet.java169 int bitPosition = bitNumber & MOD_MASK; // bitNumber mod BITS in bitMask() local
170 return 1L << bitPosition; in bitMask()
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
DBitSet.as120 var bitPosition:int = bitNumber & MOD_MASK; // bitNumber mod BITS
121 return 1 << bitPosition;