Home
last modified time | relevance | path

Searched refs:bitPosition (Results 1 – 21 of 21) 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()
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/include/llvm/ADT/
DAPInt.h105 static unsigned whichWord(unsigned bitPosition) { in whichWord() argument
106 return bitPosition / APINT_BITS_PER_WORD; in whichWord()
112 static unsigned whichBit(unsigned bitPosition) { in whichBit() argument
113 return bitPosition % APINT_BITS_PER_WORD; in whichBit()
121 static uint64_t maskBit(unsigned bitPosition) { in maskBit() argument
122 return 1ULL << whichBit(bitPosition); in maskBit()
150 uint64_t getWord(unsigned bitPosition) const { in getWord() argument
151 return isSingleWord() ? VAL : pVal[whichWord(bitPosition)]; in getWord()
838 bool operator[](unsigned bitPosition) const;
1077 void setBit(unsigned bitPosition);
[all …]
/external/mesa3d/src/amd/addrlib/
Daddrinterface.h652 UINT_32 bitPosition; ///< Bit position within surfaceAddr, 0-7. member
685 UINT_32 bitPosition; ///< Bit position in addr. 0-7. for surface bpp < 8, member
889 UINT_32 bitPosition; ///< Bit position, 0 or 4. CMASK and HTILE shares some lib method. member
921 UINT_32 bitPosition; ///< Bit position 0 or 4. CMASK and HTILE share some methods member
1102 UINT_32 bitPosition; ///< Bit position within addr, 0-7. CMASK is 4 bpp, member
1134 UINT_32 bitPosition; ///< Bit position within addr, 0-7. CMASK is 4 bpp, member
1323 UINT_32 bitPosition; ///< Bit position within fmaskAddr, 0-7. member
1354 UINT_32 bitPosition; ///< Bit position within addr, 0-7. member
/external/mesa3d/src/amd/addrlib/r800/
Degbaddrlib.cpp1275 UINT_32* pBitPosition = &pOut->bitPosition; in DispatchComputeSurfaceAddrFromCoord()
2013 UINT_32 bitPosition = pIn->bitPosition; in DispatchComputeSurfaceCoordFromAddr() local
2062 bitPosition, in DispatchComputeSurfaceCoordFromAddr()
2075 bitPosition, in DispatchComputeSurfaceCoordFromAddr()
2117 bitPosition, in DispatchComputeSurfaceCoordFromAddr()
2154 UINT_32 bitPosition, ///< [in] bit position in ComputeSurfaceCoordFromAddrMacroTiled() argument
2195 UINT_64 addrBits = BYTES_TO_BITS(addr) + bitPosition; in ComputeSurfaceCoordFromAddrMacroTiled()
3231 if ((pIn->bitPosition >= 8) || in HwlComputeFmaskCoordFromAddr()
3274 UINT_32* pBitPosition = &pOut->bitPosition; in DispatchComputeFmaskAddrFromCoord()
3578 UINT_32 bitPosition,///< [in] bit position in ComputeFmaskCoordFromAddrMicroTiled() argument
[all …]
Degbaddrlib.h354 UINT_64 addr, UINT_32 bitPosition,
378 UINT_64 addr, UINT_32 bitPosition,
384 UINT_64 addr, UINT_32 bitPosition,
Dsiaddrlib.h105 UINT_64 addr, UINT_32 bitPosition, UINT_32 pitch, UINT_32 height, UINT_32 numSlices,
Dsiaddrlib.cpp954 UINT_32 bitPosition, ///< [in] bitPosition in a byte in HwlComputeXmaskCoordFromAddr() argument
1037 tileIndex = (UINT_32)(localOffset * 2 + (bitPosition != 0)); in HwlComputeXmaskCoordFromAddr()
Dciaddrlib.cpp314 pOut->bitPosition = (metaNibbleAddress % 2) ? 4 : 0; in HwlComputeCmaskAddrFromCoord()
/external/swiftshader/third_party/LLVM/lib/Support/
DAPInt.cpp496 bool APInt::operator[](unsigned bitPosition) const { in operator []()
497 assert(bitPosition < getBitWidth() && "Bit position out of bounds!"); in operator []()
498 return (maskBit(bitPosition) & in operator []()
499 (isSingleWord() ? VAL : pVal[whichWord(bitPosition)])) != 0; in operator []()
598 void APInt::setBit(unsigned bitPosition) { in setBit() argument
600 VAL |= maskBit(bitPosition); in setBit()
602 pVal[whichWord(bitPosition)] |= maskBit(bitPosition); in setBit()
607 void APInt::clearBit(unsigned bitPosition) { in clearBit() argument
609 VAL &= ~maskBit(bitPosition); in clearBit()
611 pVal[whichWord(bitPosition)] &= ~maskBit(bitPosition); in clearBit()
[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/mesa3d/src/amd/addrlib/core/
Daddrlib.h451 UINT_32* bitPosition) const;
454 UINT_64 addr, UINT_32 bitPosition, UINT_32 pitch, UINT_32 height, UINT_32 numSlices,
500 UINT_64 addr, UINT_32 bitPosition, UINT_32 bpp,
505 UINT_64 addr, UINT_32 bitPosition,
Daddrlib.cpp1658 &pOut->bitPosition); in ComputeHtileAddrFromCoord()
1716 pIn->bitPosition, in ComputeHtileCoordFromAddr()
1797 &pOut->bitPosition); in ComputeCmaskAddrFromCoord()
1853 pIn->bitPosition, in ComputeCmaskCoordFromAddr()
2303 UINT_32 bitPosition, ///< [in] bitPosition in a byte in HwlComputeXmaskCoordFromAddr() argument
2423 bitAddr = BYTES_TO_BITS(addr) + bitPosition; in HwlComputeXmaskCoordFromAddr()
2732 UINT_32 bitPosition, ///< [in] bitPosition in a byte in ComputeSurfaceCoordFromAddrLinear() argument
2744 const UINT_64 linearOffset = (BYTES_TO_BITS(addr) + bitPosition) / bpp; in ComputeSurfaceCoordFromAddrLinear()
2765 UINT_32 bitPosition, ///< [in] bitPosition in a byte in ComputeSurfaceCoordFromAddrMicroTiled() argument
2798 bitAddr = BYTES_TO_BITS(addr) + bitPosition; in ComputeSurfaceCoordFromAddrMicroTiled()
/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/webrtc/webrtc/modules/rtp_rtcp/test/testFec/
Dtest_fec.cc191 const uint32_t bitPosition = (7 - j % 8); in TEST() local
193 (byteMask & (1 << bitPosition)) >> bitPosition; in TEST()
/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/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/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;