Lines Matching refs:cur
911 static UInt32 Backward(CLzmaEnc *p, UInt32 *backRes, UInt32 cur)
913 UInt32 posMem = p->opt[cur].posPrev;
914 UInt32 backMem = p->opt[cur].backPrev;
915 p->optimumEndIndex = cur;
918 if (p->opt[cur].prev1IsChar)
922 if (p->opt[cur].prev2)
925 p->opt[posMem - 1].posPrev = p->opt[cur].posPrev2;
926 p->opt[posMem - 1].backPrev = p->opt[cur].backPrev2;
937 p->opt[posPrev].posPrev = cur;
938 cur = posPrev;
941 while (cur != 0);
951 UInt32 numAvail, mainLen, numPairs, repMaxIndex, i, posState, lenEnd, len, cur;
1132 cur = 0;
1139 for (i = cur; i <= lenEnd; i++)
1140 printf("\nprice[%4X] = %d", position - cur + i, p->opt[i].price);
1154 cur++;
1155 if (cur == lenEnd)
1156 return Backward(p, backRes, cur);
1163 return Backward(p, backRes, cur);
1166 curOpt = &p->opt[cur];
1185 if (posPrev == cur - 1)
1252 nextOpt = &p->opt[cur + 1];
1257 nextOpt->posPrev = cur;
1265 if (matchByte == curByte && !(nextOpt->posPrev < cur && nextOpt->backPrev == 0))
1271 nextOpt->posPrev = cur;
1278 UInt32 temp = kNumOpts - 1 - cur;
1310 UInt32 offset = cur + 1 + lenTest2;
1318 opt->posPrev = cur + 1;
1339 while (lenEnd < cur + lenTest)
1346 COptimal *opt = &p->opt[cur + lenTest];
1350 opt->posPrev = cur;
1389 UInt32 offset = cur + lenTest + 1 + lenTest2;
1397 opt->posPrev = cur + lenTest + 1;
1401 opt->posPrev2 = cur;
1422 while (lenEnd < cur + newLen)
1440 opt = &p->opt[cur + lenTest];
1444 opt->posPrev = cur;
1476 UInt32 offset = cur + lenTest + 1 + lenTest2;
1486 opt->posPrev = cur + lenTest + 1;
1490 opt->posPrev2 = cur;