Lines Matching refs:mlen
625 size_t mlen; in ZSTD_insertBtAndGetAllMatches() local
628 mlen = ZSTD_count(ip, match, iLimit); in ZSTD_insertBtAndGetAllMatches()
631 mlen = ZSTD_count_2segments(ip, match, iLimit, dictEnd, prefixStart); in ZSTD_insertBtAndGetAllMatches()
635 if (mlen >= mls /* == 3 > bestLength */) { in ZSTD_insertBtAndGetAllMatches()
637 (U32)mlen); in ZSTD_insertBtAndGetAllMatches()
638 bestLength = mlen; in ZSTD_insertBtAndGetAllMatches()
642 matches[0].len = (U32)mlen; in ZSTD_insertBtAndGetAllMatches()
644 if ( (mlen > sufficient_len) | in ZSTD_insertBtAndGetAllMatches()
645 (ip+mlen == iLimit) ) { /* best possible length */ in ZSTD_insertBtAndGetAllMatches()
922 return sol.litlen + sol.mlen; in ZSTD_totalLen()
994 opt[0].mlen = 0; /* means is_a_literal */ in ZSTD_compressBlock_opt_generic()
1011 lastSequence.mlen = maxML; in ZSTD_compressBlock_opt_generic()
1035 opt[pos].mlen = pos; in ZSTD_compressBlock_opt_generic()
1051 { U32 const litlen = (opt[cur-1].mlen == 0) ? opt[cur-1].litlen + 1 : 1; in ZSTD_compressBlock_opt_generic()
1061 opt[cur].mlen = 0; in ZSTD_compressBlock_opt_generic()
1078 assert(cur >= opt[cur].mlen); in ZSTD_compressBlock_opt_generic()
1079 if (opt[cur].mlen != 0) { in ZSTD_compressBlock_opt_generic()
1080 U32 const prev = cur - opt[cur].mlen; in ZSTD_compressBlock_opt_generic()
1098 { U32 const ll0 = (opt[cur].mlen != 0); in ZSTD_compressBlock_opt_generic()
1099 U32 const litlen = (opt[cur].mlen == 0) ? opt[cur].litlen : 0; in ZSTD_compressBlock_opt_generic()
1119 lastSequence.mlen = maxML; in ZSTD_compressBlock_opt_generic()
1122 …cur -= (opt[cur].mlen==0) ? opt[cur].litlen : 0; /* last sequence is actually only literals, fix … in ZSTD_compressBlock_opt_generic()
1133 U32 mlen; in ZSTD_compressBlock_opt_generic() local
1138 for (mlen = lastML; mlen >= startML; mlen--) { /* scan downward */ in ZSTD_compressBlock_opt_generic()
1139 U32 const pos = cur + mlen; in ZSTD_compressBlock_opt_generic()
1140 … int const price = basePrice + ZSTD_getMatchPrice(offset, mlen, optStatePtr, optLevel); in ZSTD_compressBlock_opt_generic()
1144 pos, mlen, ZSTD_fCost(price), ZSTD_fCost(opt[pos].price)); in ZSTD_compressBlock_opt_generic()
1146 opt[pos].mlen = mlen; in ZSTD_compressBlock_opt_generic()
1152 pos, mlen, ZSTD_fCost(price), ZSTD_fCost(opt[pos].price)); in ZSTD_compressBlock_opt_generic()
1163 assert(opt[0].mlen == 0); in ZSTD_compressBlock_opt_generic()
1169 if (lastSequence.mlen != 0) { in ZSTD_compressBlock_opt_generic()
1184 storeEnd, lastSequence.litlen, lastSequence.mlen, lastSequence.off); in ZSTD_compressBlock_opt_generic()
1190 … seqPos, storeStart, opt[seqPos].litlen, opt[seqPos].mlen, opt[seqPos].off); in ZSTD_compressBlock_opt_generic()
1200 U32 const mlen = opt[storePos].mlen; in ZSTD_compressBlock_opt_generic() local
1202 U32 const advance = llen + mlen; in ZSTD_compressBlock_opt_generic()
1204 anchor - istart, (unsigned)llen, (unsigned)mlen); in ZSTD_compressBlock_opt_generic()
1206 …if (mlen==0) { /* only literals => must be last "sequence", actually starting a new stream of seq… in ZSTD_compressBlock_opt_generic()
1213 ZSTD_updateStats(optStatePtr, llen, anchor, offCode, mlen); in ZSTD_compressBlock_opt_generic()
1214 ZSTD_storeSeq(seqStore, llen, anchor, iend, offCode, mlen-MINMATCH); in ZSTD_compressBlock_opt_generic()