Lines Matching refs:mlen
696 size_t mlen; in ZSTD_insertBtAndGetAllMatches() local
699 mlen = ZSTD_count(ip, match, iLimit); in ZSTD_insertBtAndGetAllMatches()
702 mlen = ZSTD_count_2segments(ip, match, iLimit, dictEnd, prefixStart); in ZSTD_insertBtAndGetAllMatches()
706 if (mlen >= mls /* == 3 > bestLength */) { in ZSTD_insertBtAndGetAllMatches()
708 (U32)mlen); in ZSTD_insertBtAndGetAllMatches()
709 bestLength = mlen; in ZSTD_insertBtAndGetAllMatches()
713 matches[0].len = (U32)mlen; in ZSTD_insertBtAndGetAllMatches()
715 if ( (mlen > sufficient_len) | in ZSTD_insertBtAndGetAllMatches()
716 (ip+mlen == iLimit) ) { /* best possible length */ in ZSTD_insertBtAndGetAllMatches()
1144 opt[0].mlen = 0; /* there are only literals so far */ in ZSTD_compressBlock_opt_generic()
1163 lastStretch.mlen = maxML; in ZSTD_compressBlock_opt_generic()
1178 opt[pos].mlen = 0; in ZSTD_compressBlock_opt_generic()
1189 opt[pos].mlen = pos; in ZSTD_compressBlock_opt_generic()
1233 U32 const prev = cur - prevMatch.mlen; in ZSTD_compressBlock_opt_generic()
1235 assert(cur >= prevMatch.mlen); in ZSTD_compressBlock_opt_generic()
1256 assert(cur >= opt[cur].mlen); in ZSTD_compressBlock_opt_generic()
1259 U32 const prev = cur - opt[cur].mlen; in ZSTD_compressBlock_opt_generic()
1298 lastStretch.mlen = longestML; in ZSTD_compressBlock_opt_generic()
1310 U32 mlen; in ZSTD_compressBlock_opt_generic() local
1315 for (mlen = lastML; mlen >= startML; mlen--) { /* scan downward */ in ZSTD_compressBlock_opt_generic()
1316 U32 const pos = cur + mlen; in ZSTD_compressBlock_opt_generic()
1317 … int const price = basePrice + (int)ZSTD_getMatchPrice(offset, mlen, optStatePtr, optLevel); in ZSTD_compressBlock_opt_generic()
1321 pos, mlen, ZSTD_fCost(price), ZSTD_fCost(opt[pos].price)); in ZSTD_compressBlock_opt_generic()
1328 opt[pos].mlen = mlen; in ZSTD_compressBlock_opt_generic()
1334 pos, mlen, ZSTD_fCost(price), ZSTD_fCost(opt[pos].price)); in ZSTD_compressBlock_opt_generic()
1342 assert(cur >= lastStretch.mlen); in ZSTD_compressBlock_opt_generic()
1343 cur = last_pos - lastStretch.mlen; in ZSTD_compressBlock_opt_generic()
1346 assert(opt[0].mlen == 0); 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()
1350 if (lastStretch.mlen==0) { in ZSTD_compressBlock_opt_generic()
1385 storeEnd, lastStretch.litlen, lastStretch.mlen, lastStretch.off); in ZSTD_compressBlock_opt_generic()
1389 opt[storeEnd].mlen = 0; in ZSTD_compressBlock_opt_generic()
1400 opt[storeStart].litlen, opt[storeStart].mlen, opt[storeStart].off); in ZSTD_compressBlock_opt_generic()
1401 if (nextStretch.mlen == 0) { in ZSTD_compressBlock_opt_generic()
1407 assert(nextStretch.litlen + nextStretch.mlen <= stretchPos); in ZSTD_compressBlock_opt_generic()
1408 stretchPos -= nextStretch.litlen + nextStretch.mlen; in ZSTD_compressBlock_opt_generic()
1416 U32 const mlen = opt[storePos].mlen; in ZSTD_compressBlock_opt_generic() local
1418 U32 const advance = llen + mlen; in ZSTD_compressBlock_opt_generic()
1420 (int)(anchor - istart), (unsigned)llen, (unsigned)mlen); in ZSTD_compressBlock_opt_generic()
1422 …if (mlen==0) { /* only literals => must be last "sequence", actually starting a new stream of seq… in ZSTD_compressBlock_opt_generic()
1429 ZSTD_updateStats(optStatePtr, llen, anchor, offBase, mlen); in ZSTD_compressBlock_opt_generic()
1430 ZSTD_storeSeq(seqStore, llen, anchor, iend, offBase, mlen); in ZSTD_compressBlock_opt_generic()