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;
443 last_pos = 0;
458 last_pos = 1;
464 if (mlen > last_pos || price < opt[mlen].price)
465 SET_PRICE(mlen, mlen, i, litlen, price); /* note : macro modifies last_pos */
474 if (!last_pos && !match_num) {
483 last_pos = 1;
488 best_mlen = (last_pos) ? last_pos : minMatch;
494 if (mlen > last_pos || price < opt[mlen].price)
495 SET_PRICE(mlen, mlen, matches[u].off, litlen, price); /* note : macro modifies last_pos */
500 if (last_pos < minMatch) {
515 for (cur = 1; cur <= last_pos; cur++) {
529 if (cur > last_pos || price <= opt[cur].price)
532 if (cur == last_pos)
562 last_pos = cur + 1;
583 if (cur + mlen > last_pos || price <= opt[cur + mlen].price)
596 last_pos = cur + 1;
618 if (cur + mlen > last_pos || (price < opt[cur + mlen].price))
626 best_mlen = opt[last_pos].mlen;
627 best_off = opt[last_pos].off;
628 cur = last_pos - best_mlen;
631 _storeSequence: /* cur, last_pos, best_mlen, best_off have to be set */
646 for (u = 0; u <= last_pos;) {
650 for (cur = 0; cur < last_pos;) {
682 } /* for (cur=0; cur < last_pos; ) */
738 U32 cur, match_num, last_pos, litlen, price;
742 last_pos = 0;
764 last_pos = 1;
772 if (mlen > last_pos || price < opt[mlen].price)
773 SET_PRICE(mlen, mlen, i, litlen, price); /* note : macro modifies last_pos */
782 if (!last_pos && !match_num) {
798 last_pos = 1;
802 best_mlen = (last_pos) ? last_pos : minMatch;
811 if (mlen > last_pos || price < opt[mlen].price)
817 if (last_pos < minMatch) {
823 for (cur = 1; cur <= last_pos; cur++) {
837 if (cur > last_pos || price <= opt[cur].price)
840 if (cur == last_pos)
876 last_pos = cur + 1;
897 if (cur + mlen > last_pos || price <= opt[cur + mlen].price)
910 last_pos = cur + 1;
932 if (cur + mlen > last_pos || (price < opt[cur + mlen].price))
938 } /* for (cur = 1; cur <= last_pos; cur++) */
940 best_mlen = opt[last_pos].mlen;
941 best_off = opt[last_pos].off;
942 cur = last_pos - best_mlen;
945 _storeSequence: /* cur, last_pos, best_mlen, best_off have to be set */
960 for (u = 0; u <= last_pos;) {
964 for (cur = 0; cur < last_pos;) {
997 } /* for (cur=0; cur < last_pos; ) */