Lines Matching refs:last_pos
1121 U32 cur, last_pos = 0; in ZSTD_compressBlock_opt_generic() local
1168 last_pos = maxML; in ZSTD_compressBlock_opt_generic()
1195 last_pos = pos-1; in ZSTD_compressBlock_opt_generic()
1201 for (cur = 1; cur <= last_pos; cur++) { in ZSTD_compressBlock_opt_generic()
1243 if (last_pos < cur+1) last_pos = cur+1; in ZSTD_compressBlock_opt_generic()
1267 if (cur == last_pos) break; in ZSTD_compressBlock_opt_generic()
1301 last_pos = cur + longestML; in ZSTD_compressBlock_opt_generic()
1319 if ((pos > last_pos) || (price < opt[pos].price)) { in ZSTD_compressBlock_opt_generic()
1322 while (last_pos < pos) { in ZSTD_compressBlock_opt_generic()
1324 last_pos++; in ZSTD_compressBlock_opt_generic()
1325 opt[last_pos].price = ZSTD_MAX_PRICE; in ZSTD_compressBlock_opt_generic()
1326 … opt[last_pos].litlen = !0; /* just needs to be != 0, to mean "not an end of match" */ in ZSTD_compressBlock_opt_generic()
1338 opt[last_pos+1].price = ZSTD_MAX_PRICE; in ZSTD_compressBlock_opt_generic()
1341 lastStretch = opt[last_pos]; in ZSTD_compressBlock_opt_generic()
1343 cur = last_pos - lastStretch.mlen; in ZSTD_compressBlock_opt_generic()
1347 assert(last_pos >= lastStretch.mlen); in ZSTD_compressBlock_opt_generic()
1348 assert(cur == last_pos - lastStretch.mlen); in ZSTD_compressBlock_opt_generic()
1352 assert(lastStretch.litlen == (ip - anchor) + last_pos); in ZSTD_compressBlock_opt_generic()
1353 ip += last_pos; in ZSTD_compressBlock_opt_generic()
1382 last_pos, cur); (void)last_pos; in ZSTD_compressBlock_opt_generic()