Lines Matching defs:state

145   CState state;
273 UInt32 state;
309 UInt32 state;
366 dest->state = p->state;
392 dest->state = p->state;
876 static UInt32 GetRepLen1Price(CLzmaEnc *p, UInt32 state, UInt32 posState)
879 GET_PRICE_0(p->isRepG0[state]) +
880 GET_PRICE_0(p->isRep0Long[state][posState]);
883 static UInt32 GetPureRepPrice(CLzmaEnc *p, UInt32 repIndex, UInt32 state, UInt32 posState)
888 price = GET_PRICE_0(p->isRepG0[state]);
889 price += GET_PRICE_1(p->isRep0Long[state][posState]);
893 price = GET_PRICE_1(p->isRepG0[state]);
895 price += GET_PRICE_0(p->isRepG1[state]);
898 price += GET_PRICE_1(p->isRepG1[state]);
899 price += GET_PRICE(p->isRepG2[state], repIndex - 2);
905 static UInt32 GetRepPrice(CLzmaEnc *p, UInt32 repIndex, UInt32 len, UInt32 state, UInt32 posState)
908 GetPureRepPrice(p, repIndex, state, posState);
1027 p->opt[0].state = (CState)p->state;
1033 p->opt[1].price = GET_PRICE_0(p->isMatch[p->state][posState]) +
1034 (!IsCharState(p->state) ?
1041 matchPrice = GET_PRICE_1(p->isMatch[p->state][posState]);
1042 repMatchPrice = matchPrice + GET_PRICE_1(p->isRep[p->state]);
1046 UInt32 shortRepPrice = repMatchPrice + GetRepLen1Price(p, p->state, posState);
1076 price = repMatchPrice + GetPureRepPrice(p, i, p->state, posState);
1092 normalMatchPrice = matchPrice + GET_PRICE_0(p->isRep[p->state]);
1146 UInt32 numAvailFull, newLen, numPairs, posPrev, state, posState, startLen;
1173 state = p->opt[curOpt->posPrev2].state;
1175 state = kRepNextStates[state];
1177 state = kMatchNextStates[state];
1180 state = p->opt[posPrev].state;
1181 state = kLiteralNextStates[state];
1184 state = p->opt[posPrev].state;
1188 state = kShortRepNextStates[state];
1190 state = kLiteralNextStates[state];
1200 state = kRepNextStates[state];
1206 state = kRepNextStates[state];
1208 state = kMatchNextStates[state];
1228 curOpt->state = (CState)state;
1243 curAnd1Price = curPrice + GET_PRICE_0(p->isMatch[state][posState]);
1247 (!IsCharState(state) ?
1262 matchPrice = curPrice + GET_PRICE_1(p->isMatch[state][posState]);
1263 repMatchPrice = matchPrice + GET_PRICE_1(p->isRep[state]);
1267 UInt32 shortRepPrice = repMatchPrice + GetRepLen1Price(p, state, posState);
1301 UInt32 state2 = kLiteralNextStates[state];
1342 price = repMatchPrice + GetPureRepPrice(p, repIndex, state, posState);
1372 UInt32 state2 = kRepNextStates[state];
1419 UInt32 normalMatchPrice = matchPrice + GET_PRICE_0(p->isRep[state]);
1462 UInt32 state2 = kMatchNextStates[state];
1620 RangeEnc_EncodeBit(&p->rc, &p->isMatch[p->state][posState], 1);
1621 RangeEnc_EncodeBit(&p->rc, &p->isRep[p->state], 0);
1622 p->state = kMatchNextStates[p->state];
1777 RangeEnc_EncodeBit(&p->rc, &p->isMatch[p->state][0], 0);
1778 p->state = kLiteralNextStates[p->state];
1806 RangeEnc_EncodeBit(&p->rc, &p->isMatch[p->state][posState], 0);
1810 if (IsCharState(p->state))
1814 p->state = kLiteralNextStates[p->state];
1818 RangeEnc_EncodeBit(&p->rc, &p->isMatch[p->state][posState], 1);
1821 RangeEnc_EncodeBit(&p->rc, &p->isRep[p->state], 1);
1824 RangeEnc_EncodeBit(&p->rc, &p->isRepG0[p->state], 0);
1825 RangeEnc_EncodeBit(&p->rc, &p->isRep0Long[p->state][posState], ((len == 1) ? 0 : 1));
1830 RangeEnc_EncodeBit(&p->rc, &p->isRepG0[p->state], 1);
1832 RangeEnc_EncodeBit(&p->rc, &p->isRepG1[p->state], 0);
1835 RangeEnc_EncodeBit(&p->rc, &p->isRepG1[p->state], 1);
1836 RangeEnc_EncodeBit(&p->rc, &p->isRepG2[p->state], pos - 2);
1845 p->state = kShortRepNextStates[p->state];
1849 p->state = kRepNextStates[p->state];
1855 RangeEnc_EncodeBit(&p->rc, &p->isRep[p->state], 0);
1856 p->state = kMatchNextStates[p->state];
1971 p->state = 0;