Home
last modified time | relevance | path

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

12

/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()
967 bool operator[](unsigned bitPosition) const {
968 assert(bitPosition < getBitWidth() && "Bit position out of bounds!");
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h112 static unsigned whichWord(unsigned bitPosition) { in whichWord() argument
113 return bitPosition / APINT_BITS_PER_WORD; in whichWord()
120 static unsigned whichBit(unsigned bitPosition) { in whichBit() argument
121 return bitPosition % APINT_BITS_PER_WORD; in whichBit()
130 static uint64_t maskBit(unsigned bitPosition) { in maskBit() argument
131 return 1ULL << whichBit(bitPosition); in maskBit()
160 uint64_t getWord(unsigned bitPosition) const { in getWord() argument
161 return isSingleWord() ? VAL : pVal[whichWord(bitPosition)]; in getWord()
943 bool operator[](unsigned bitPosition) const {
944 assert(bitPosition < getBitWidth() && "Bit position out of bounds!");
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DAPInt.h119 static unsigned whichWord(unsigned bitPosition) { in whichWord() argument
120 return bitPosition / APINT_BITS_PER_WORD; in whichWord()
127 static unsigned whichBit(unsigned bitPosition) { in whichBit() argument
128 return bitPosition % APINT_BITS_PER_WORD; in whichBit()
137 static uint64_t maskBit(unsigned bitPosition) { in maskBit() argument
138 return 1ULL << whichBit(bitPosition); in maskBit()
162 uint64_t getWord(unsigned bitPosition) const { in getWord() argument
163 return isSingleWord() ? U.VAL : U.pVal[whichWord(bitPosition)]; in getWord()
1137 bool operator[](unsigned bitPosition) const {
1138 assert(bitPosition < getBitWidth() && "Bit position out of bounds!");
[all …]
/external/llvm-project/llvm/include/llvm/ADT/
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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DAPInt.cpp339 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument
340 assert(bitPosition < BitWidth && "Out of the bit-width range!"); in flipBit()
341 if ((*this)[bitPosition]) clearBit(bitPosition); in flipBit()
342 else setBit(bitPosition); in flipBit()
345 void APInt::insertBits(const APInt &subBits, unsigned bitPosition) { in insertBits() argument
347 assert(0 < subBitWidth && (subBitWidth + bitPosition) <= BitWidth && in insertBits()
359 U.VAL &= ~(mask << bitPosition); in insertBits()
360 U.VAL |= (subBits.U.VAL << bitPosition); in insertBits()
364 unsigned loBit = whichBit(bitPosition); in insertBits()
365 unsigned loWord = whichWord(bitPosition); in insertBits()
[all …]
/external/llvm-project/llvm/lib/Support/
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 …]
/external/mesa3d/src/amd/addrlib/inc/
Daddrinterface.h733 UINT_32 bitPosition; ///< Bit position within surfaceAddr, 0-7. member
766 UINT_32 bitPosition; ///< Bit position in addr. 0-7. for surface bpp < 8, member
981 UINT_32 bitPosition; ///< Bit position, 0 or 4. CMASK and HTILE shares some lib method. member
1013 UINT_32 bitPosition; ///< Bit position 0 or 4. CMASK and HTILE share some methods member
1194 UINT_32 bitPosition; ///< Bit position within addr, 0-7. CMASK is 4 bpp, member
1226 UINT_32 bitPosition; ///< Bit position within addr, 0-7. CMASK is 4 bpp, member
1415 UINT_32 bitPosition; ///< Bit position within fmaskAddr, 0-7. member
1446 UINT_32 bitPosition; ///< Bit position within addr, 0-7. member
2592 UINT_32 bitPosition; ///< Bit position within surfaceAddr, 0-7. member
2625 UINT_32 bitPosition; ///< Bit position in addr. 0-7. for surface bpp < 8, member
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DLatmReader.java298 int bitPosition = data.getPosition(); in parsePayloadMux() local
299 if ((bitPosition & 0x07) == 0) { in parsePayloadMux()
301 sampleDataBuffer.setPosition(bitPosition >> 3); in parsePayloadMux()
/external/mesa3d/src/amd/addrlib/src/core/
Daddrlib1.h341 UINT_32* bitPosition) const;
344 UINT_64 addr, UINT_32 bitPosition, UINT_32 pitch, UINT_32 height, UINT_32 numSlices,
397 UINT_64 addr, UINT_32 bitPosition, UINT_32 bpp,
402 UINT_64 addr, UINT_32 bitPosition,
Daddrlib1.cpp1531 &pOut->bitPosition); in ComputeHtileAddrFromCoord()
1590 pIn->bitPosition, in ComputeHtileCoordFromAddr()
1671 &pOut->bitPosition); in ComputeCmaskAddrFromCoord()
1727 pIn->bitPosition, in ComputeCmaskCoordFromAddr()
2177 UINT_32 bitPosition, ///< [in] bitPosition in a byte in HwlComputeXmaskCoordFromAddr() argument
2299 bitAddr = BYTES_TO_BITS(addr) + bitPosition; in HwlComputeXmaskCoordFromAddr()
2608 UINT_32 bitPosition, ///< [in] bitPosition in a byte in ComputeSurfaceCoordFromAddrLinear() argument
2620 const UINT_64 linearOffset = (BYTES_TO_BITS(addr) + bitPosition) / bpp; in ComputeSurfaceCoordFromAddrLinear()
2641 UINT_32 bitPosition, ///< [in] bitPosition in a byte in ComputeSurfaceCoordFromAddrMicroTiled() argument
2674 bitAddr = BYTES_TO_BITS(addr) + bitPosition; in ComputeSurfaceCoordFromAddrMicroTiled()
Daddrlib2.cpp422 (pIn->bitPosition >= 8)) in ComputeSurfaceCoordFromAddr()
1165 pOut->bitPosition = 0; in ComputeSurfaceAddrFromCoordLinear()
/external/antlr/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/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/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/mesa3d/src/amd/addrlib/src/r800/
Degbaddrlib.h369 UINT_64 addr, UINT_32 bitPosition,
393 UINT_64 addr, UINT_32 bitPosition,
399 UINT_64 addr, UINT_32 bitPosition,
Degbaddrlib.cpp1329 UINT_32* pBitPosition = &pOut->bitPosition; in DispatchComputeSurfaceAddrFromCoord()
2175 UINT_32 bitPosition = pIn->bitPosition; in DispatchComputeSurfaceCoordFromAddr() local
2224 bitPosition, in DispatchComputeSurfaceCoordFromAddr()
2237 bitPosition, in DispatchComputeSurfaceCoordFromAddr()
2279 bitPosition, in DispatchComputeSurfaceCoordFromAddr()
2316 UINT_32 bitPosition, ///< [in] bit position in ComputeSurfaceCoordFromAddrMacroTiled() argument
2357 UINT_64 addrBits = BYTES_TO_BITS(addr) + bitPosition; in ComputeSurfaceCoordFromAddrMacroTiled()
3937 if ((pIn->bitPosition >= 8) || in HwlComputeSurfaceCoordFromAddr()
Dsiaddrlib.h128 UINT_64 addr, UINT_32 bitPosition, UINT_32 pitch, UINT_32 height, UINT_32 numSlices,
Dciaddrlib.cpp315 pOut->bitPosition = (metaNibbleAddress % 2) ? 4 : 0; in HwlComputeCmaskAddrFromCoord()
359 pOut->bitPosition = 0; in HwlComputeHtileAddrFromCoord()
Dsiaddrlib.cpp1450 UINT_32 bitPosition, ///< [in] bitPosition in a byte in HwlComputeXmaskCoordFromAddr() argument
1533 tileIndex = (UINT_32)(localOffset * 2 + (bitPosition != 0)); in HwlComputeXmaskCoordFromAddr()
/external/llvm/lib/Support/
DAPInt.cpp575 void APInt::setBit(unsigned bitPosition) { in setBit() argument
577 VAL |= maskBit(bitPosition); in setBit()
579 pVal[whichWord(bitPosition)] |= maskBit(bitPosition); in setBit()
584 void APInt::clearBit(unsigned bitPosition) { in clearBit() argument
586 VAL &= ~maskBit(bitPosition); in clearBit()
588 pVal[whichWord(bitPosition)] &= ~maskBit(bitPosition); in clearBit()
596 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument
597 assert(bitPosition < BitWidth && "Out of the bit-width range!"); in flipBit()
598 if ((*this)[bitPosition]) clearBit(bitPosition); in flipBit()
599 else setBit(bitPosition); in flipBit()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DAPInt.cpp553 void APInt::setBit(unsigned bitPosition) { in setBit() argument
555 VAL |= maskBit(bitPosition); in setBit()
557 pVal[whichWord(bitPosition)] |= maskBit(bitPosition); in setBit()
562 void APInt::clearBit(unsigned bitPosition) { in clearBit() argument
564 VAL &= ~maskBit(bitPosition); in clearBit()
566 pVal[whichWord(bitPosition)] &= ~maskBit(bitPosition); in clearBit()
574 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument
575 assert(bitPosition < BitWidth && "Out of the bit-width range!"); in flipBit()
576 if ((*this)[bitPosition]) clearBit(bitPosition); in flipBit()
577 else setBit(bitPosition); in flipBit()
/external/antlr/tool/src/main/java/org/antlr/misc/
DBitSet.java165 int bitPosition = bitNumber & MOD_MASK; // bitNumber mod BITS in bitMask() local
166 return 1L << bitPosition; in bitMask()
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/
DBitSet.js66 var bitPosition = bitNumber & org.antlr.runtime.BitSet.MOD_MASK;
67 return 1 << bitPosition;
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/
DBitSet.as120 var bitPosition:int = bitNumber & MOD_MASK; // bitNumber mod BITS
121 return 1 << bitPosition;
/external/python/pyasn1/pyasn1/type/
Duniv.py693 for bitPosition in bitPositions:
694 number |= 1 << (rightmostPosition - bitPosition)

12