• Home
  • Raw
  • Download

Lines Matching refs:posState

336 #define GET_PRICE_LEN(p, posState, len) \  argument
337 ((p)->prices[posState][(size_t)(len) - LZMA_MATCH_LEN_MIN])
942 static void LenEnc_Encode(CLenEnc *p, CRangeEnc *rc, unsigned sym, unsigned posState) in LenEnc_Encode() argument
969 probs += (posState << (1 + kLenNumLowBits)); in LenEnc_Encode()
1004 unsigned posState; in LenPriceEnc_UpdateTables() local
1008 for (posState = 0; posState < numPosStates; posState++) in LenPriceEnc_UpdateTables()
1010 UInt32 *prices = p->prices[posState]; in LenPriceEnc_UpdateTables()
1011 const CLzmaProb *probs = enc->low + (posState << (1 + kLenNumLowBits)); in LenPriceEnc_UpdateTables()
1072 unsigned posState; in LenPriceEnc_UpdateTables() local
1074 for (posState = 1; posState < numPosStates; posState++) in LenPriceEnc_UpdateTables()
1075 … memcpy(p->prices[posState] + kLenNumLowSymbols * 2, p->prices[0] + kLenNumLowSymbols * 2, num); in LenPriceEnc_UpdateTables()
1146 #define GetPrice_ShortRep(p, state, posState) \ argument
1147 ( GET_PRICE_0(p->isRepG0[state]) + GET_PRICE_0(p->isRep0Long[state][posState]))
1149 #define GetPrice_Rep_0(p, state, posState) ( \ argument
1150 GET_PRICE_1(p->isMatch[state][posState]) \
1151 + GET_PRICE_1(p->isRep0Long[state][posState])) \
1156 static UInt32 GetPrice_PureRep(const CLzmaEnc *p, unsigned repIndex, size_t state, size_t posState) in GetPrice_PureRep() argument
1163 price += GET_PRICE_1(p->isRep0Long[state][posState]); in GetPrice_PureRep()
1242 unsigned numPairs, mainLen, repMaxIndex, i, posState; in GetOptimum() local
1324 posState = (position & p->pbMask); in GetOptimum()
1328 p->opt[1].price = GET_PRICE_0(p->isMatch[p->state][posState]) + in GetOptimum()
1336 matchPrice = GET_PRICE_1(p->isMatch[p->state][posState]); in GetOptimum()
1342 UInt32 shortRepPrice = repMatchPrice + GetPrice_ShortRep(p, p->state, posState); in GetOptimum()
1370 price = repMatchPrice + GetPrice_PureRep(p, i, p->state, posState); in GetOptimum()
1373 UInt32 price2 = price + GET_PRICE_LEN(&p->repLenEnc, posState, repLen); in GetOptimum()
1405 UInt32 price = normalMatchPrice + GET_PRICE_LEN(&p->lenEnc, posState, len); in GetOptimum()
1460 unsigned newLen, numPairs, prev, state, posState, startLen; in GetOptimum() local
1596 posState = (position & p->pbMask); in GetOptimum()
1609 unsigned prob = p->isMatch[state][posState]; in GetOptimum()
1664 UInt32 shortRepPrice = repMatchPrice + GetPrice_ShortRep(p, state, posState); in GetOptimum()
1758 price = repMatchPrice + GetPrice_PureRep(p, repIndex, state, posState); in GetOptimum()
1761 UInt32 price2 = price + GET_PRICE_LEN(&p->repLenEnc, posState, len2); in GetOptimum()
1794 price += GET_PRICE_LEN(&p->repLenEnc, posState, len) in GetOptimum()
1878 UInt32 price = normalMatchPrice + GET_PRICE_LEN(&p->lenEnc, posState, len); in GetOptimum()
2114 static void WriteEndMarker(CLzmaEnc *p, unsigned posState) in WriteEndMarker() argument
2120 CLzmaProb *prob = &p->isMatch[p->state][posState]; in WriteEndMarker()
2130 LenEnc_Encode(&p->lenProbs, &p->rc, 0, posState); in WriteEndMarker()
2438 unsigned len, posState; in LzmaEnc_CodeOneBlock() local
2458 posState = (unsigned)nowPos32 & p->pbMask; in LzmaEnc_CodeOneBlock()
2460 probs = &p->isMatch[p->state][posState]; in LzmaEnc_CodeOneBlock()
2502 probs = &p->isRep0Long[p->state][posState]; in LzmaEnc_CodeOneBlock()
2552 LenEnc_Encode(&p->repLenProbs, &p->rc, len - LZMA_MATCH_LEN_MIN, posState); in LzmaEnc_CodeOneBlock()
2564 LenEnc_Encode(&p->lenProbs, &p->rc, len - LZMA_MATCH_LEN_MIN, posState); in LzmaEnc_CodeOneBlock()