Home
last modified time | relevance | path

Searched refs:kNumMoveReducingBits (Results 1 – 4 of 4) sorted by relevance

/external/lzma/CS/7zip/Compress/RangeCoder/
DRangeCoderBit.cs10 const int kNumMoveReducingBits = 2; field
48 private static UInt32[] ProbPrices = new UInt32[kBitModelTotal >> kNumMoveReducingBits];
52 const int kNumBits = (kNumBitModelTotalBits - kNumMoveReducingBits); in BitEncoder()
65 … ProbPrices[(((Prob - symbol) ^ ((-(int)symbol))) & (kBitModelTotal - 1)) >> kNumMoveReducingBits]; in GetPrice()
67 public uint GetPrice0() { return ProbPrices[Prob >> kNumMoveReducingBits]; } in GetPrice0()
68 public uint GetPrice1() { return ProbPrices[(kBitModelTotal - Prob) >> kNumMoveReducingBits]; } in GetPrice1()
/external/lzma/Java/SevenZip/Compression/RangeCoder/
DEncoder.java93 static final int kNumMoveReducingBits = 2; field in Encoder
124 private static int[] ProbPrices = new int[kBitModelTotal >>> kNumMoveReducingBits];
128 int kNumBits = (kNumBitModelTotalBits - kNumMoveReducingBits);
141 …turn ProbPrices[(((Prob - symbol) ^ ((-symbol))) & (kBitModelTotal - 1)) >>> kNumMoveReducingBits]; in GetPrice()
145 return ProbPrices[Prob >>> kNumMoveReducingBits]; in GetPrice0()
149 return ProbPrices[(kBitModelTotal - Prob) >>> kNumMoveReducingBits]; in GetPrice1()
/external/lzma/CPP/7zip/Compress/
DRangeCoderBit.h15 const unsigned kNumMoveReducingBits = 4; variable
20 extern UInt32 ProbPrices[kBitModelTotal >> kNumMoveReducingBits];
72 … ProbPrices[(this->Prob ^ ((-(int)(Int32)symbol)) & (kBitModelTotal - 1)) >> kNumMoveReducingBits]; in GetPrice()
74 UInt32 GetPrice0() const { return ProbPrices[this->Prob >> kNumMoveReducingBits]; } in GetPrice0()
75 …tPrice1() const { return ProbPrices[(this->Prob ^ (kBitModelTotal - 1)) >> kNumMoveReducingBits]; } in GetPrice1()
/external/lzma/C/
DLzmaEnc.c43 #define kNumMoveReducingBits 4 macro
297 UInt32 ProbPrices[kBitModelTotal >> kNumMoveReducingBits];
613 for (i = (1 << kNumMoveReducingBits) / 2; i < kBitModelTotal; i += (1 << kNumMoveReducingBits)) in LzmaEnc_InitPriceTables()
629 … ProbPrices[i >> kNumMoveReducingBits] = ((kNumBitModelTotalBits << kCyclesBits) - 15 - bitCount); in LzmaEnc_InitPriceTables()
635 p->ProbPrices[((prob) ^ (((-(int)(symbol))) & (kBitModelTotal - 1))) >> kNumMoveReducingBits];
638 ProbPrices[((prob) ^ ((-((int)(symbol))) & (kBitModelTotal - 1))) >> kNumMoveReducingBits];
640 #define GET_PRICE_0(prob) p->ProbPrices[(prob) >> kNumMoveReducingBits]
641 #define GET_PRICE_1(prob) p->ProbPrices[((prob) ^ (kBitModelTotal - 1)) >> kNumMoveReducingBits]
643 #define GET_PRICE_0a(prob) ProbPrices[(prob) >> kNumMoveReducingBits]
644 #define GET_PRICE_1a(prob) ProbPrices[((prob) ^ (kBitModelTotal - 1)) >> kNumMoveReducingBits]