Lines Matching refs:posState

249 #define GET_PRICE_LEN(p, posState, len) \  argument
250 ((p)->prices[posState][(size_t)(len) - LZMA_MATCH_LEN_MIN])
831 static void LenEnc_Encode(CLenEnc *p, CRangeEnc *rc, unsigned sym, unsigned posState) in LenEnc_Encode() argument
858 probs += (posState << (1 + kLenNumLowBits)); in LenEnc_Encode()
893 unsigned posState; in LenPriceEnc_UpdateTables() local
897 for (posState = 0; posState < numPosStates; posState++) in LenPriceEnc_UpdateTables()
899 UInt32 *prices = p->prices[posState]; in LenPriceEnc_UpdateTables()
900 const CLzmaProb *probs = enc->low + (posState << (1 + kLenNumLowBits)); in LenPriceEnc_UpdateTables()
961 unsigned posState; in LenPriceEnc_UpdateTables() local
963 for (posState = 1; posState < numPosStates; posState++) in LenPriceEnc_UpdateTables()
964 … memcpy(p->prices[posState] + kLenNumLowSymbols * 2, p->prices[0] + kLenNumLowSymbols * 2, num); in LenPriceEnc_UpdateTables()
1031 #define GetPrice_ShortRep(p, state, posState) \ argument
1032 ( GET_PRICE_0(p->isRepG0[state]) + GET_PRICE_0(p->isRep0Long[state][posState]))
1034 #define GetPrice_Rep_0(p, state, posState) ( \ argument
1035 GET_PRICE_1(p->isMatch[state][posState]) \
1036 + GET_PRICE_1(p->isRep0Long[state][posState])) \
1041 static UInt32 GetPrice_PureRep(const CLzmaEnc *p, unsigned repIndex, size_t state, size_t posState) in GetPrice_PureRep() argument
1048 price += GET_PRICE_1(p->isRep0Long[state][posState]); in GetPrice_PureRep()
1127 unsigned numPairs, mainLen, repMaxIndex, i, posState; in GetOptimum() local
1205 posState = (position & p->pbMask); in GetOptimum()
1209 p->opt[1].price = GET_PRICE_0(p->isMatch[p->state][posState]) + in GetOptimum()
1217 matchPrice = GET_PRICE_1(p->isMatch[p->state][posState]); in GetOptimum()
1223 UInt32 shortRepPrice = repMatchPrice + GetPrice_ShortRep(p, p->state, posState); in GetOptimum()
1251 price = repMatchPrice + GetPrice_PureRep(p, i, p->state, posState); in GetOptimum()
1254 UInt32 price2 = price + GET_PRICE_LEN(&p->repLenEnc, posState, repLen); in GetOptimum()
1286 UInt32 price = normalMatchPrice + GET_PRICE_LEN(&p->lenEnc, posState, len); in GetOptimum()
1341 unsigned newLen, numPairs, prev, state, posState, startLen; in GetOptimum() local
1477 posState = (position & p->pbMask); in GetOptimum()
1490 unsigned prob = p->isMatch[state][posState]; in GetOptimum()
1545 UInt32 shortRepPrice = repMatchPrice + GetPrice_ShortRep(p, state, posState); in GetOptimum()
1639 price = repMatchPrice + GetPrice_PureRep(p, repIndex, state, posState); in GetOptimum()
1642 UInt32 price2 = price + GET_PRICE_LEN(&p->repLenEnc, posState, len2); in GetOptimum()
1675 price += GET_PRICE_LEN(&p->repLenEnc, posState, len) in GetOptimum()
1759 UInt32 price = normalMatchPrice + GET_PRICE_LEN(&p->lenEnc, posState, len); in GetOptimum()
1995 static void WriteEndMarker(CLzmaEnc *p, unsigned posState) in WriteEndMarker() argument
2001 CLzmaProb *prob = &p->isMatch[p->state][posState]; in WriteEndMarker()
2011 LenEnc_Encode(&p->lenProbs, &p->rc, 0, posState); in WriteEndMarker()
2298 unsigned len, posState; in LzmaEnc_CodeOneBlock() local
2318 posState = (unsigned)nowPos32 & p->pbMask; in LzmaEnc_CodeOneBlock()
2320 probs = &p->isMatch[p->state][posState]; in LzmaEnc_CodeOneBlock()
2362 probs = &p->isRep0Long[p->state][posState]; in LzmaEnc_CodeOneBlock()
2412 LenEnc_Encode(&p->repLenProbs, &p->rc, len - LZMA_MATCH_LEN_MIN, posState); in LzmaEnc_CodeOneBlock()
2424 LenEnc_Encode(&p->lenProbs, &p->rc, len - LZMA_MATCH_LEN_MIN, posState); in LzmaEnc_CodeOneBlock()