Lines Matching refs:last_pos
202 while (last_pos < pos) { \
203 opt[last_pos + 1].price = ZSTD_MAX_PRICE; \
204 last_pos++; \
440 U32 cur, match_num, last_pos, litlen, price; in ZSTD_compressBlock_opt_generic() local
443 last_pos = 0; in ZSTD_compressBlock_opt_generic()
458 last_pos = 1; in ZSTD_compressBlock_opt_generic()
464 if (mlen > last_pos || price < opt[mlen].price) in ZSTD_compressBlock_opt_generic()
474 if (!last_pos && !match_num) { in ZSTD_compressBlock_opt_generic()
483 last_pos = 1; in ZSTD_compressBlock_opt_generic()
488 best_mlen = (last_pos) ? last_pos : minMatch; in ZSTD_compressBlock_opt_generic()
494 if (mlen > last_pos || price < opt[mlen].price) in ZSTD_compressBlock_opt_generic()
500 if (last_pos < minMatch) { in ZSTD_compressBlock_opt_generic()
515 for (cur = 1; cur <= last_pos; cur++) { in ZSTD_compressBlock_opt_generic()
529 if (cur > last_pos || price <= opt[cur].price) in ZSTD_compressBlock_opt_generic()
532 if (cur == last_pos) in ZSTD_compressBlock_opt_generic()
562 last_pos = cur + 1; in ZSTD_compressBlock_opt_generic()
583 if (cur + mlen > last_pos || price <= opt[cur + mlen].price) in ZSTD_compressBlock_opt_generic()
596 last_pos = cur + 1; in ZSTD_compressBlock_opt_generic()
618 if (cur + mlen > last_pos || (price < opt[cur + mlen].price)) in ZSTD_compressBlock_opt_generic()
626 best_mlen = opt[last_pos].mlen; in ZSTD_compressBlock_opt_generic()
627 best_off = opt[last_pos].off; in ZSTD_compressBlock_opt_generic()
628 cur = last_pos - best_mlen; in ZSTD_compressBlock_opt_generic()
646 for (u = 0; u <= last_pos;) { in ZSTD_compressBlock_opt_generic()
650 for (cur = 0; cur < last_pos;) { in ZSTD_compressBlock_opt_generic()
738 U32 cur, match_num, last_pos, litlen, price; in ZSTD_compressBlock_opt_extDict_generic() local
742 last_pos = 0; in ZSTD_compressBlock_opt_extDict_generic()
764 last_pos = 1; in ZSTD_compressBlock_opt_extDict_generic()
772 if (mlen > last_pos || price < opt[mlen].price) in ZSTD_compressBlock_opt_extDict_generic()
782 if (!last_pos && !match_num) { in ZSTD_compressBlock_opt_extDict_generic()
798 last_pos = 1; in ZSTD_compressBlock_opt_extDict_generic()
802 best_mlen = (last_pos) ? last_pos : minMatch; in ZSTD_compressBlock_opt_extDict_generic()
811 if (mlen > last_pos || price < opt[mlen].price) in ZSTD_compressBlock_opt_extDict_generic()
817 if (last_pos < minMatch) { in ZSTD_compressBlock_opt_extDict_generic()
823 for (cur = 1; cur <= last_pos; cur++) { in ZSTD_compressBlock_opt_extDict_generic()
837 if (cur > last_pos || price <= opt[cur].price) in ZSTD_compressBlock_opt_extDict_generic()
840 if (cur == last_pos) in ZSTD_compressBlock_opt_extDict_generic()
876 last_pos = cur + 1; in ZSTD_compressBlock_opt_extDict_generic()
897 if (cur + mlen > last_pos || price <= opt[cur + mlen].price) in ZSTD_compressBlock_opt_extDict_generic()
910 last_pos = cur + 1; in ZSTD_compressBlock_opt_extDict_generic()
932 if (cur + mlen > last_pos || (price < opt[cur + mlen].price)) in ZSTD_compressBlock_opt_extDict_generic()
940 best_mlen = opt[last_pos].mlen; in ZSTD_compressBlock_opt_extDict_generic()
941 best_off = opt[last_pos].off; in ZSTD_compressBlock_opt_extDict_generic()
942 cur = last_pos - best_mlen; in ZSTD_compressBlock_opt_extDict_generic()
960 for (u = 0; u <= last_pos;) { in ZSTD_compressBlock_opt_extDict_generic()
964 for (cur = 0; cur < last_pos;) { in ZSTD_compressBlock_opt_extDict_generic()