Lines Matching refs:last_pos
1078 U32 cur, last_pos = 0;
1112 last_pos = ZSTD_totalLen(lastSequence);
1137 last_pos = pos-1;
1142 for (cur = 1; cur <= last_pos; cur++) {
1187 if (cur == last_pos) break;
1221 last_pos = cur + ZSTD_totalLen(lastSequence);
1240 if ((pos > last_pos) || (price < opt[pos].price)) {
1243 while (last_pos < pos) { opt[last_pos+1].price = ZSTD_MAX_PRICE; last_pos++; } /* fill empty positions */
1254 } /* for (cur = 1; cur <= last_pos; cur++) */
1256 lastSequence = opt[last_pos];
1257 cur = last_pos > ZSTD_totalLen(lastSequence) ? last_pos - ZSTD_totalLen(lastSequence) : 0; /* single sequence, and it starts before `ip` */
1260 _shortestPath: /* cur, last_pos, best_mlen, best_off have to be set */
1278 DEBUGLOG(6, "start reverse traversal (last_pos:%u, cur:%u)",
1279 last_pos, cur); (void)last_pos;