Lines Matching refs:litlen

1124         {   U32 const litlen = (U32)(ip - anchor);  in ZSTD_compressBlock_opt_generic()  local
1125 U32 const ll0 = !litlen; in ZSTD_compressBlock_opt_generic()
1145 opt[0].litlen = litlen; in ZSTD_compressBlock_opt_generic()
1151 opt[0].price = LL_PRICE(litlen); in ZSTD_compressBlock_opt_generic()
1162 lastStretch.litlen = 0; in ZSTD_compressBlock_opt_generic()
1179 opt[pos].litlen = litlen + pos; in ZSTD_compressBlock_opt_generic()
1191 opt[pos].litlen = 0; /* end of match */ in ZSTD_compressBlock_opt_generic()
1207 { U32 const litlen = opt[cur-1].litlen + 1; in ZSTD_compressBlock_opt_generic() local
1210 + LL_INCPRICE(litlen); in ZSTD_compressBlock_opt_generic()
1215 … (int)(inr-istart), cur, ZSTD_fCost(price), ZSTD_fCost(opt[cur].price), litlen, in ZSTD_compressBlock_opt_generic()
1218 opt[cur].litlen = litlen; in ZSTD_compressBlock_opt_generic()
1221 && (prevMatch.litlen == 0) /* replace a match */ in ZSTD_compressBlock_opt_generic()
1227 int withMoreLiterals = price + LIT_PRICE(ip+cur) + LL_INCPRICE(litlen+1); in ZSTD_compressBlock_opt_generic()
1229 … cur+1, ZSTD_fCost(with1literal), litlen+1, ZSTD_fCost(withMoreLiterals)); in ZSTD_compressBlock_opt_generic()
1234 … Repcodes_t const newReps = ZSTD_newRep(opt[prev].rep, prevMatch.off, opt[prev].litlen==0); in ZSTD_compressBlock_opt_generic()
1241 opt[cur+1].litlen = 1; in ZSTD_compressBlock_opt_generic()
1257 if (opt[cur].litlen == 0) { in ZSTD_compressBlock_opt_generic()
1260 … Repcodes_t const newReps = ZSTD_newRep(opt[prev].rep, opt[cur].off, opt[prev].litlen==0); in ZSTD_compressBlock_opt_generic()
1276 { U32 const ll0 = (opt[cur].litlen == 0); in ZSTD_compressBlock_opt_generic()
1300 lastStretch.litlen = 0; in ZSTD_compressBlock_opt_generic()
1313 matchNb, matches[matchNb].off, lastML, opt[cur].litlen); in ZSTD_compressBlock_opt_generic()
1326 … opt[last_pos].litlen = !0; /* just needs to be != 0, to mean "not an end of match" */ in ZSTD_compressBlock_opt_generic()
1330 opt[pos].litlen = 0; in ZSTD_compressBlock_opt_generic()
1352 assert(lastStretch.litlen == (ip - anchor) + last_pos); in ZSTD_compressBlock_opt_generic()
1359 if (lastStretch.litlen == 0) { in ZSTD_compressBlock_opt_generic()
1361 Repcodes_t const reps = ZSTD_newRep(opt[cur].rep, lastStretch.off, opt[cur].litlen==0); in ZSTD_compressBlock_opt_generic()
1365 assert(cur >= lastStretch.litlen); in ZSTD_compressBlock_opt_generic()
1366 cur -= lastStretch.litlen; in ZSTD_compressBlock_opt_generic()
1385 storeEnd, lastStretch.litlen, lastStretch.mlen, lastStretch.off); in ZSTD_compressBlock_opt_generic()
1386 if (lastStretch.litlen > 0) { in ZSTD_compressBlock_opt_generic()
1388 opt[storeEnd].litlen = lastStretch.litlen; in ZSTD_compressBlock_opt_generic()
1398 opt[storeStart].litlen = nextStretch.litlen; in ZSTD_compressBlock_opt_generic()
1400 opt[storeStart].litlen, opt[storeStart].mlen, opt[storeStart].off); 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()
1415 U32 const llen = opt[storePos].litlen; in ZSTD_compressBlock_opt_generic()