Lines Matching refs:mlen
660 size_t mlen; in ZSTD_insertBtAndGetAllMatches() local
663 mlen = ZSTD_count(ip, match, iLimit); in ZSTD_insertBtAndGetAllMatches()
666 mlen = ZSTD_count_2segments(ip, match, iLimit, dictEnd, prefixStart); in ZSTD_insertBtAndGetAllMatches()
670 if (mlen >= mls /* == 3 > bestLength */) { in ZSTD_insertBtAndGetAllMatches()
672 (U32)mlen); in ZSTD_insertBtAndGetAllMatches()
673 bestLength = mlen; in ZSTD_insertBtAndGetAllMatches()
677 matches[0].len = (U32)mlen; in ZSTD_insertBtAndGetAllMatches()
679 if ( (mlen > sufficient_len) | in ZSTD_insertBtAndGetAllMatches()
680 (ip+mlen == iLimit) ) { /* best possible length */ in ZSTD_insertBtAndGetAllMatches()
1016 return sol.litlen + sol.mlen; in ZSTD_totalLen()
1090 opt[0].mlen = 0; /* means is_a_literal */ in ZSTD_compressBlock_opt_generic()
1107 lastSequence.mlen = maxML; in ZSTD_compressBlock_opt_generic()
1132 opt[pos].mlen = pos; in ZSTD_compressBlock_opt_generic()
1148 { U32 const litlen = (opt[cur-1].mlen == 0) ? opt[cur-1].litlen + 1 : 1; in ZSTD_compressBlock_opt_generic()
1158 opt[cur].mlen = 0; in ZSTD_compressBlock_opt_generic()
1175 assert(cur >= opt[cur].mlen); in ZSTD_compressBlock_opt_generic()
1176 if (opt[cur].mlen != 0) { in ZSTD_compressBlock_opt_generic()
1177 U32 const prev = cur - opt[cur].mlen; in ZSTD_compressBlock_opt_generic()
1196 { U32 const ll0 = (opt[cur].mlen != 0); in ZSTD_compressBlock_opt_generic()
1197 U32 const litlen = (opt[cur].mlen == 0) ? opt[cur].litlen : 0; in ZSTD_compressBlock_opt_generic()
1217 lastSequence.mlen = maxML; in ZSTD_compressBlock_opt_generic()
1220 …cur -= (opt[cur].mlen==0) ? opt[cur].litlen : 0; /* last sequence is actually only literals, fix … in ZSTD_compressBlock_opt_generic()
1231 U32 mlen; in ZSTD_compressBlock_opt_generic() local
1236 for (mlen = lastML; mlen >= startML; mlen--) { /* scan downward */ in ZSTD_compressBlock_opt_generic()
1237 U32 const pos = cur + mlen; in ZSTD_compressBlock_opt_generic()
1238 … int const price = (int)basePrice + (int)ZSTD_getMatchPrice(offset, mlen, optStatePtr, optLevel); in ZSTD_compressBlock_opt_generic()
1242 pos, mlen, ZSTD_fCost(price), ZSTD_fCost(opt[pos].price)); in ZSTD_compressBlock_opt_generic()
1244 opt[pos].mlen = mlen; in ZSTD_compressBlock_opt_generic()
1250 pos, mlen, ZSTD_fCost(price), ZSTD_fCost(opt[pos].price)); in ZSTD_compressBlock_opt_generic()
1261 assert(opt[0].mlen == 0); in ZSTD_compressBlock_opt_generic()
1267 if (lastSequence.mlen != 0) { in ZSTD_compressBlock_opt_generic()
1282 storeEnd, lastSequence.litlen, lastSequence.mlen, lastSequence.off); in ZSTD_compressBlock_opt_generic()
1288 … seqPos, storeStart, opt[seqPos].litlen, opt[seqPos].mlen, opt[seqPos].off); in ZSTD_compressBlock_opt_generic()
1298 U32 const mlen = opt[storePos].mlen; in ZSTD_compressBlock_opt_generic() local
1300 U32 const advance = llen + mlen; in ZSTD_compressBlock_opt_generic()
1302 anchor - istart, (unsigned)llen, (unsigned)mlen); in ZSTD_compressBlock_opt_generic()
1304 …if (mlen==0) { /* only literals => must be last "sequence", actually starting a new stream of seq… in ZSTD_compressBlock_opt_generic()
1311 ZSTD_updateStats(optStatePtr, llen, anchor, offCode, mlen); in ZSTD_compressBlock_opt_generic()
1312 ZSTD_storeSeq(seqStore, llen, anchor, iend, offCode, mlen); in ZSTD_compressBlock_opt_generic()