Home
last modified time | relevance | path

Searched refs:bitIndex (Results 1 – 25 of 26) sorted by relevance

12

/external/lzma/CS/7zip/Compress/RangeCoder/
DRangeCoderBitTree.cs25 for (int bitIndex = NumBitLevels; bitIndex > 0; ) in Encode()
27 bitIndex--; in Encode()
28 UInt32 bit = (symbol >> bitIndex) & 1; in Encode()
50 for (int bitIndex = NumBitLevels; bitIndex > 0; ) in GetPrice()
52 bitIndex--; in GetPrice()
53 UInt32 bit = (symbol >> bitIndex) & 1; in GetPrice()
123 for (int bitIndex = NumBitLevels; bitIndex > 0; bitIndex--) in Decode()
132 for (int bitIndex = 0; bitIndex < NumBitLevels; bitIndex++) in ReverseDecode()
137 symbol |= (bit << bitIndex); in ReverseDecode()
147 for (int bitIndex = 0; bitIndex < NumBitLevels; bitIndex++) in ReverseDecode()
[all …]
/external/lzma/Java/SevenZip/Compression/RangeCoder/
DBitTreeDecoder.java22 for (int bitIndex = NumBitLevels; bitIndex != 0; bitIndex--) in Decode()
31 for (int bitIndex = 0; bitIndex < NumBitLevels; bitIndex++) in ReverseDecode()
36 symbol |= (bit << bitIndex); in ReverseDecode()
46 for (int bitIndex = 0; bitIndex < NumBitLevels; bitIndex++) in ReverseDecode()
51 symbol |= (bit << bitIndex); in ReverseDecode()
DBitTreeEncoder.java23 for (int bitIndex = NumBitLevels; bitIndex != 0; ) in Encode()
25 bitIndex--; in Encode()
26 int bit = (symbol >>> bitIndex) & 1; in Encode()
48 for (int bitIndex = NumBitLevels; bitIndex != 0; ) in GetPrice()
50 bitIndex--; in GetPrice()
51 int bit = (symbol >>> bitIndex) & 1; in GetPrice()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_helpers.cc543 string GetBitFieldNameForBit(int bitIndex) { in GetBitFieldNameForBit() argument
544 return GetBitFieldName(bitIndex / 32); in GetBitFieldNameForBit()
549 string GenerateGetBitInternal(const string& prefix, int bitIndex) { in GenerateGetBitInternal() argument
550 string varName = prefix + GetBitFieldNameForBit(bitIndex); in GenerateGetBitInternal()
551 int bitInVarIndex = bitIndex % 32; in GenerateGetBitInternal()
558 string GenerateSetBitInternal(const string& prefix, int bitIndex) { in GenerateSetBitInternal() argument
559 string varName = prefix + GetBitFieldNameForBit(bitIndex); in GenerateSetBitInternal()
560 int bitInVarIndex = bitIndex % 32; in GenerateSetBitInternal()
569 string GenerateGetBit(int bitIndex) { in GenerateGetBit() argument
570 return GenerateGetBitInternal("", bitIndex); in GenerateGetBit()
[all …]
Djava_helpers.h220 string GetBitFieldNameForBit(int bitIndex);
225 string GenerateGetBit(int bitIndex);
230 string GenerateSetBit(int bitIndex);
235 string GenerateClearBit(int bitIndex);
241 string GenerateGetBitFromLocal(int bitIndex);
247 string GenerateSetBitToLocal(int bitIndex);
253 string GenerateGetBitMutableLocal(int bitIndex);
259 string GenerateSetBitMutableLocal(int bitIndex);
/external/icu/icu4c/source/test/perf/usetperf/
Dbitset.cpp34 UBool BitSet::get(int32_t bitIndex) const { in get()
35 uint32_t longIndex = bitIndex >> 5; in get()
36 int32_t bitInLong = bitIndex & 0x1F; in get()
41 void BitSet::set(int32_t bitIndex) { in set() argument
42 uint32_t longIndex = bitIndex >> 5; in set()
43 int32_t bitInLong = bitIndex & 0x1F; in set()
Dbitset.h32 UBool get(int32_t bitIndex) const;
34 void set(int32_t bitIndex);
/external/skqp/src/codec/
DSkSwizzler.cpp95 int bitIndex = offset % 8; in swizzle_bit_to_grayscale() local
98 dst[0] = ((currByte >> (7-bitIndex)) & 1) ? GRAYSCALE_WHITE : GRAYSCALE_BLACK; in swizzle_bit_to_grayscale()
101 int bitOffset = bitIndex + deltaSrc; in swizzle_bit_to_grayscale()
102 bitIndex = bitOffset % 8; in swizzle_bit_to_grayscale()
104 dst[x] = ((currByte >> (7-bitIndex)) & 1) ? GRAYSCALE_WHITE : GRAYSCALE_BLACK; in swizzle_bit_to_grayscale()
119 int bitIndex = offset % 8; in swizzle_bit_to_n32() local
122 dst[0] = ((currByte >> (7 - bitIndex)) & 1) ? SK_ColorWHITE : SK_ColorBLACK; in swizzle_bit_to_n32()
125 int bitOffset = bitIndex + deltaSrc; in swizzle_bit_to_n32()
126 bitIndex = bitOffset % 8; in swizzle_bit_to_n32()
128 dst[x] = ((currByte >> (7 - bitIndex)) & 1) ? SK_ColorWHITE : SK_ColorBLACK; in swizzle_bit_to_n32()
[all …]
/external/skia/src/codec/
DSkSwizzler.cpp95 int bitIndex = offset % 8; in swizzle_bit_to_grayscale() local
98 dst[0] = ((currByte >> (7-bitIndex)) & 1) ? GRAYSCALE_WHITE : GRAYSCALE_BLACK; in swizzle_bit_to_grayscale()
101 int bitOffset = bitIndex + deltaSrc; in swizzle_bit_to_grayscale()
102 bitIndex = bitOffset % 8; in swizzle_bit_to_grayscale()
104 dst[x] = ((currByte >> (7-bitIndex)) & 1) ? GRAYSCALE_WHITE : GRAYSCALE_BLACK; in swizzle_bit_to_grayscale()
119 int bitIndex = offset % 8; in swizzle_bit_to_n32() local
122 dst[0] = ((currByte >> (7 - bitIndex)) & 1) ? SK_ColorWHITE : SK_ColorBLACK; in swizzle_bit_to_n32()
125 int bitOffset = bitIndex + deltaSrc; in swizzle_bit_to_n32()
126 bitIndex = bitOffset % 8; in swizzle_bit_to_n32()
128 dst[x] = ((currByte >> (7 - bitIndex)) & 1) ? SK_ColorWHITE : SK_ColorBLACK; in swizzle_bit_to_n32()
[all …]
/external/cldr/tools/java/org/unicode/cldr/draft/
DUnmodifiableBitSet.java38 public void clear(int bitIndex) { in clear() argument
48 public void flip(int bitIndex) { in flip() argument
58 public void set(int bitIndex) { in set() argument
63 public void set(int bitIndex, boolean value) { in set() argument
/external/pdfium/fxbarcode/qrcode/
DBC_QRCoderMatrixUtil.cpp181 int32_t bitIndex = 6 * 3 - 1; in MaybeEmbedVersionInfo() local
184 int32_t bit = versionInfoBits.At(bitIndex, e); in MaybeEmbedVersionInfo()
187 bitIndex--; in MaybeEmbedVersionInfo()
201 size_t bitIndex = 0; in EmbedDataBits() local
220 if (bitIndex < dataBits->Size()) { in EmbedDataBits()
221 bit = dataBits->At(bitIndex, e); in EmbedDataBits()
224 bitIndex++; in EmbedDataBits()
244 if (bitIndex != dataBits->Size()) { in EmbedDataBits()
/external/swiftshader/third_party/LLVM/utils/TableGen/
DARMDecoderEmitter.cpp607 unsigned bitIndex; in recurse() local
611 for (bitIndex = 0; bitIndex < NumBits; bitIndex++) in recurse()
612 BitValueArray[StartBit + bitIndex] = BIT_UNSET; in recurse()
639 for (bitIndex = 0; bitIndex < NumBits; bitIndex++) { in recurse()
640 if (mapIterator->first & (1ULL << bitIndex)) in recurse()
641 BitValueArray[StartBit + bitIndex] = BIT_TRUE; in recurse()
643 BitValueArray[StartBit + bitIndex] = BIT_FALSE; in recurse()
872 unsigned bitIndex; in dumpFilterArray() local
874 for (bitIndex = BIT_WIDTH; bitIndex > 0; bitIndex--) { in dumpFilterArray()
875 switch (filter[bitIndex - 1]) { in dumpFilterArray()
DFixedLenDecoderEmitter.cpp444 unsigned bitIndex; in recurse() local
448 for (bitIndex = 0; bitIndex < NumBits; bitIndex++) in recurse()
449 BitValueArray[StartBit + bitIndex] = BIT_UNSET; in recurse()
477 for (bitIndex = 0; bitIndex < NumBits; bitIndex++) { in recurse()
478 if (mapIterator->first & (1ULL << bitIndex)) in recurse()
479 BitValueArray[StartBit + bitIndex] = BIT_TRUE; in recurse()
481 BitValueArray[StartBit + bitIndex] = BIT_FALSE; in recurse()
619 unsigned bitIndex; in dumpFilterArray() local
621 for (bitIndex = BitWidth; bitIndex > 0; bitIndex--) { in dumpFilterArray()
622 switch (filter[bitIndex - 1]) { in dumpFilterArray()
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_helpers.cc570 int bitIndex, map<string, string>* variables) { in SetBitOperationVariables() argument
571 (*variables)["get_" + name] = GenerateGetBit(bitIndex); in SetBitOperationVariables()
572 (*variables)["set_" + name] = GenerateSetBit(bitIndex); in SetBitOperationVariables()
573 (*variables)["clear_" + name] = GenerateClearBit(bitIndex); in SetBitOperationVariables()
574 (*variables)["different_" + name] = GenerateDifferentBit(bitIndex); in SetBitOperationVariables()
Djavanano_helpers.h184 int bitIndex, map<string, string>* variables);
/external/llvm/utils/TableGen/
DFixedLenDecoderEmitter.cpp545 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) in recurse() local
546 BitValueArray[StartBit + bitIndex] = BIT_UNSET; in recurse()
567 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) { in recurse() local
568 if (Inst.first & (1ULL << bitIndex)) in recurse()
569 BitValueArray[StartBit + bitIndex] = BIT_TRUE; in recurse()
571 BitValueArray[StartBit + bitIndex] = BIT_FALSE; in recurse()
945 for (unsigned bitIndex = BitWidth; bitIndex > 0; bitIndex--) { in dumpFilterArray() local
946 switch (filter[bitIndex - 1]) { in dumpFilterArray()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/TableGen/
DFixedLenDecoderEmitter.cpp559 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) in recurse() local
560 BitValueArray[StartBit + bitIndex] = BIT_UNSET; in recurse()
581 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) { in recurse() local
582 if (Inst.first & (1ULL << bitIndex)) in recurse()
583 BitValueArray[StartBit + bitIndex] = BIT_TRUE; in recurse()
585 BitValueArray[StartBit + bitIndex] = BIT_FALSE; in recurse()
974 for (unsigned bitIndex = BitWidth; bitIndex > 0; bitIndex--) { in dumpFilterArray() local
975 switch (filter[bitIndex - 1]) { in dumpFilterArray()
/external/cldr/tools/java/org/unicode/cldr/tool/
DTablePrinter.java280 public boolean getSortAscending(int bitIndex) { in getSortAscending() argument
281 return ascending.get(bitIndex); in getSortAscending()
284 public void setSortAscending(int bitIndex, boolean value) { in setSortAscending() argument
285 ascending.set(bitIndex, value); in setSortAscending()
/external/antlr/runtime/C/src/
Dantlr3collections.c1752 static ANTLR3_UINT8 bitIndex[256] = variable
2068 depth = 56 + bitIndex[((xorKey & 0xFF00000000000000)>>56)]; in intTrieAdd()
2072 depth = 48 + bitIndex[((xorKey & 0x00FF000000000000)>>48)]; in intTrieAdd()
2079 depth = 40 + bitIndex[((xorKey & 0x0000FF0000000000)>>40)]; in intTrieAdd()
2083 depth = 32 + bitIndex[((xorKey & 0x000000FF00000000)>>32)]; in intTrieAdd()
2094 depth = 24 + bitIndex[((xorKey & 0x00000000FF000000)>>24)]; in intTrieAdd()
2098 depth = 16 + bitIndex[((xorKey & 0x0000000000FF0000)>>16)]; in intTrieAdd()
2105 depth = 8 + bitIndex[((xorKey & 0x0000000000000FF00)>>8)]; in intTrieAdd()
2109 depth = bitIndex[xorKey & 0x00000000000000FF]; in intTrieAdd()
/external/antlr/runtime/Cpp/include/
Dantlr3collections.inl84 static ANTLR_UINT8 bitIndex[256] = local
107 return bitIndex;
347 const ANTLR_UINT8* bitIndex = this->get_bitIndex(); local
355 depth = 56 + bitIndex[((xorKey & 0xFF00000000000000)>>56)];
359 depth = 48 + bitIndex[((xorKey & 0x00FF000000000000)>>48)];
366 depth = 40 + bitIndex[((xorKey & 0x0000FF0000000000)>>40)];
370 depth = 32 + bitIndex[((xorKey & 0x000000FF00000000)>>32)];
381 depth = 24 + bitIndex[((xorKey & 0x00000000FF000000)>>24)];
385 depth = 16 + bitIndex[((xorKey & 0x0000000000FF0000)>>16)];
392 depth = 8 + bitIndex[((xorKey & 0x0000000000000FF00)>>8)];
[all …]
/external/swiftshader/src/Device/
DETC_Decoder.cpp595 int bitIndex = x * 4 + y; in getIndex() local
596 int bitOffset = bitIndex & 7; in getIndex()
597 int lsb = (pixelIndexLSB[1 - (bitIndex >> 3)] >> bitOffset) & 1; in getIndex()
598 int msb = (pixelIndexMSB[1 - (bitIndex >> 3)] >> bitOffset) & 1; in getIndex()
/external/swiftshader/src/Renderer/
DETC_Decoder.cpp595 int bitIndex = x * 4 + y; in getIndex() local
596 int bitOffset = bitIndex & 7; in getIndex()
597 int lsb = (pixelIndexLSB[1 - (bitIndex >> 3)] >> bitOffset) & 1; in getIndex()
598 int msb = (pixelIndexMSB[1 - (bitIndex >> 3)] >> bitOffset) & 1; in getIndex()
/external/skqp/third_party/etc1/
Detc1.cpp307 const etc1_byte* pIn, etc1_uint32 *pLow, int bitIndex, in chooseModifier() argument
337 << bitIndex; in chooseModifier()
/external/skia/third_party/etc1/
Detc1.cpp307 const etc1_byte* pIn, etc1_uint32 *pLow, int bitIndex, in chooseModifier() argument
337 << bitIndex; in chooseModifier()
/external/icu/icu4c/source/common/
Ddictbe.cpp1095 static inline int32_t utext_i32_flag(int32_t bitIndex) { in utext_i32_flag() argument
1096 return (int32_t)1 << bitIndex; in utext_i32_flag()

12