• Home
  • Raw
  • Download

Lines Matching refs:prob

629 #define RC_BIT_PRE(p, prob) \  argument
630 ttt = *(prob); \
637 #define RC_BIT(p, prob, bit) { \ argument
638 RC_BIT_PRE(p, prob) \
641 *(prob) = (CLzmaProb)ttt; \
647 #define RC_BIT(p, prob, bit) { \ argument
649 RC_BIT_PRE(p, prob) \
660 *(prob) = (CLzmaProb)ttt; \
669 #define RC_BIT_0_BASE(p, prob) \ argument
670 range = newBound; *(prob) = (CLzmaProb)(ttt + ((kBitModelTotal - ttt) >> kNumMoveBits));
672 #define RC_BIT_1_BASE(p, prob) \ argument
673 range -= newBound; (p)->low += newBound; *(prob) = (CLzmaProb)(ttt - (ttt >> kNumMoveBits)); \
675 #define RC_BIT_0(p, prob) \ argument
676 RC_BIT_0_BASE(p, prob) \
679 #define RC_BIT_1(p, prob) \ argument
680 RC_BIT_1_BASE(p, prob) \
683 static void RangeEnc_EncodeBit_0(CRangeEnc *p, CLzmaProb *prob) in RangeEnc_EncodeBit_0() argument
687 RC_BIT_PRE(p, prob) in RangeEnc_EncodeBit_0()
688 RC_BIT_0(p, prob) in RangeEnc_EncodeBit_0()
700 CLzmaProb *prob = probs + (sym >> 8); in LitEnc_Encode() local
703 RC_BIT(p, prob, bit); in LitEnc_Encode()
717 CLzmaProb *prob; in LitEnc_EncodeMatched() local
721 prob = probs + (offs + (matchByte & offs) + (sym >> 8)); in LitEnc_EncodeMatched()
725 RC_BIT(p, prob, bit); in LitEnc_EncodeMatched()
758 #define GET_PRICE(prob, bit) \ argument
759 …p->ProbPrices[((prob) ^ (unsigned)(((-(int)(bit))) & (kBitModelTotal - 1))) >> kNumMoveReducingBit…
761 #define GET_PRICEa(prob, bit) \ argument
762 … ProbPrices[((prob) ^ (unsigned)((-((int)(bit))) & (kBitModelTotal - 1))) >> kNumMoveReducingBits];
764 #define GET_PRICE_0(prob) p->ProbPrices[(prob) >> kNumMoveReducingBits] argument
765 #define GET_PRICE_1(prob) p->ProbPrices[((prob) ^ (kBitModelTotal - 1)) >> kNumMoveReducingBits] argument
767 #define GET_PRICEa_0(prob) ProbPrices[(prob) >> kNumMoveReducingBits] argument
768 #define GET_PRICEa_1(prob) ProbPrices[((prob) ^ (kBitModelTotal - 1)) >> kNumMoveReducingBits] argument
872 UInt32 prob; in SetPrices_3() local
875 prob = probs[4 + (i >> 1)]; in SetPrices_3()
876 prices[i ] = price + GET_PRICEa_0(prob); in SetPrices_3()
877 prices[i + 1] = price + GET_PRICEa_1(prob); in SetPrices_3()
891 unsigned prob = enc->low[0]; in LenPriceEnc_UpdateTables() local
894 b = GET_PRICEa_1(prob); in LenPriceEnc_UpdateTables()
895 a = GET_PRICEa_0(prob); in LenPriceEnc_UpdateTables()
953 unsigned prob = probs[(size_t)i + (1 << (kLenNumHighBits - 1))]; in LenPriceEnc_UpdateTables() local
954 prices[(size_t)i * 2 ] = price + GET_PRICEa_0(prob); in LenPriceEnc_UpdateTables()
955 prices[(size_t)i * 2 + 1] = price + GET_PRICEa_1(prob); in LenPriceEnc_UpdateTables()
1044 UInt32 prob = p->isRepG0[state]; in GetPrice_PureRep() local
1047 price = GET_PRICE_0(prob); in GetPrice_PureRep()
1052 price = GET_PRICE_1(prob); in GetPrice_PureRep()
1053 prob = p->isRepG1[state]; in GetPrice_PureRep()
1055 price += GET_PRICE_0(prob); in GetPrice_PureRep()
1058 price += GET_PRICE_1(prob); in GetPrice_PureRep()
1490 unsigned prob = p->isMatch[state][posState]; in GetOptimum() local
1491 matchPrice = curPrice + GET_PRICE_1(prob); in GetOptimum()
1492 litPrice = curPrice + GET_PRICE_0(prob); in GetOptimum()
2001 CLzmaProb *prob = &p->isMatch[p->state][posState]; in WriteEndMarker() local
2002 RC_BIT_PRE(&p->rc, prob) in WriteEndMarker()
2003 RC_BIT_1(&p->rc, prob) in WriteEndMarker()
2004 prob = &p->isRep[p->state]; in WriteEndMarker()
2005 RC_BIT_PRE(&p->rc, prob) in WriteEndMarker()
2006 RC_BIT_0(&p->rc, prob) in WriteEndMarker()
2094 UInt32 prob; in FillAlignPrices() local
2098 prob = probs[m]; in FillAlignPrices()
2099 p->alignPrices[i ] = price + GET_PRICEa_0(prob); in FillAlignPrices()
2100 p->alignPrices[i + 8] = price + GET_PRICEa_1(prob); in FillAlignPrices()
2140 unsigned prob = probs[m]; in FillDistancesPrices() local
2141 tempPrices[base ] = price + GET_PRICEa_0(prob); in FillDistancesPrices()
2142 tempPrices[base + offset] = price + GET_PRICEa_1(prob); in FillDistancesPrices()
2159 unsigned prob; in FillDistancesPrices() local
2165 prob = probs[(size_t)slot + (1 << (kNumPosSlotBits - 1))]; in FillDistancesPrices()
2166 posSlotPrices[(size_t)slot * 2 ] = price + GET_PRICEa_0(prob); in FillDistancesPrices()
2167 posSlotPrices[(size_t)slot * 2 + 1] = price + GET_PRICEa_1(prob); in FillDistancesPrices()
2442 CLzmaProb *prob = probs + (sym >> kNumPosSlotBits); in LzmaEnc_CodeOneBlock() local
2445 RC_BIT(&p->rc, prob, bit); in LzmaEnc_CodeOneBlock()