Lines Matching defs:posState

337 #define GET_PRICE_LEN(p, posState, len) \

338 ((p)->prices[posState][(size_t)(len) - LZMA_MATCH_LEN_MIN])
341 #define GET_PRICE_LEN(p, posState, len) \
342 ((p)->prices2[(size_t)(len) - 2] + ((p)->prices1[posState][((len) - 2) & (kLenNumLowSymbols * 2 - 1)] & (((len) - 2 - kLenNumLowSymbols * 2) >> 9)))
928 static void LenEnc_Encode(CLenEnc *p, CRangeEnc *rc, unsigned sym, unsigned posState)
950 // RcTree_Encode(rc, probs + (posState << kLenNumLowBits), kLenNumLowBits, sym);
955 probs += (posState << (1 + kLenNumLowBits));
990 unsigned posState;
994 for (posState = 0; posState < numPosStates; posState++)
996 UInt32 *prices = p->prices[posState];
997 const CLzmaProb *probs = enc->low + (posState << (1 + kLenNumLowBits));
1058 unsigned posState;
1060 for (posState = 1; posState < numPosStates; posState++)
1061 memcpy(p->prices[posState] + kLenNumLowSymbols * 2, p->prices[0] + kLenNumLowSymbols * 2, num);
1132 #define GetPrice_ShortRep(p, state, posState) \
1133 ( GET_PRICE_0(p->isRepG0[state]) + GET_PRICE_0(p->isRep0Long[state][posState]))
1135 #define GetPrice_Rep_0(p, state, posState) ( \
1136 GET_PRICE_1(p->isMatch[state][posState]) \
1137 + GET_PRICE_1(p->isRep0Long[state][posState])) \
1142 static UInt32 GetPrice_PureRep(const CLzmaEnc *p, unsigned repIndex, size_t state, size_t posState)
1149 price += GET_PRICE_1(p->isRep0Long[state][posState]);
1228 unsigned numPairs, mainLen, repMaxIndex, i, posState;
1310 posState = (position & p->pbMask);
1314 p->opt[1].price = GET_PRICE_0(p->isMatch[p->state][posState]) +
1322 matchPrice = GET_PRICE_1(p->isMatch[p->state][posState]);
1328 UInt32 shortRepPrice = repMatchPrice + GetPrice_ShortRep(p, p->state, posState);
1356 price = repMatchPrice + GetPrice_PureRep(p, i, p->state, posState);
1359 UInt32 price2 = price + GET_PRICE_LEN(&p->repLenEnc, posState, repLen);
1391 UInt32 price = normalMatchPrice + GET_PRICE_LEN(&p->lenEnc, posState, len);
1446 unsigned newLen, numPairs, prev, state, posState, startLen;
1582 posState = (position & p->pbMask);
1595 unsigned prob = p->isMatch[state][posState];
1650 UInt32 shortRepPrice = repMatchPrice + GetPrice_ShortRep(p, state, posState);
1744 price = repMatchPrice + GetPrice_PureRep(p, repIndex, state, posState);
1747 UInt32 price2 = price + GET_PRICE_LEN(&p->repLenEnc, posState, len2);
1780 price += GET_PRICE_LEN(&p->repLenEnc, posState, len)
1864 UInt32 price = normalMatchPrice + GET_PRICE_LEN(&p->lenEnc, posState, len);
2100 static void WriteEndMarker(CLzmaEnc *p, unsigned posState)
2106 CLzmaProb *prob = &p->isMatch[p->state][posState];
2116 LenEnc_Encode(&p->lenProbs, &p->rc, 0, posState);
2425 unsigned len, posState;
2445 posState = (unsigned)nowPos32 & p->pbMask;
2447 probs = &p->isMatch[p->state][posState];
2489 probs = &p->isRep0Long[p->state][posState];
2539 LenEnc_Encode(&p->repLenProbs, &p->rc, len - LZMA_MATCH_LEN_MIN, posState);
2551 LenEnc_Encode(&p->lenProbs, &p->rc, len - LZMA_MATCH_LEN_MIN, posState);