Lines Matching refs:lastStretch

1103     ZSTD_optimal_t lastStretch;  in ZSTD_compressBlock_opt_generic()  local
1106 ZSTD_memset(&lastStretch, 0, sizeof(ZSTD_optimal_t)); in ZSTD_compressBlock_opt_generic()
1162 lastStretch.litlen = 0; in ZSTD_compressBlock_opt_generic()
1163 lastStretch.mlen = maxML; in ZSTD_compressBlock_opt_generic()
1164 lastStretch.off = maxOffBase; in ZSTD_compressBlock_opt_generic()
1298 lastStretch.mlen = longestML; in ZSTD_compressBlock_opt_generic()
1299 lastStretch.off = matches[nbMatches-1].off; in ZSTD_compressBlock_opt_generic()
1300 lastStretch.litlen = 0; in ZSTD_compressBlock_opt_generic()
1341 lastStretch = opt[last_pos]; 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()
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()
1352 assert(lastStretch.litlen == (ip - anchor) + last_pos); in ZSTD_compressBlock_opt_generic()
1356 assert(lastStretch.off > 0); 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()
1364 ZSTD_memcpy(rep, lastStretch.rep, sizeof(Repcodes_t)); 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()
1391 opt[storeStart] = lastStretch; in ZSTD_compressBlock_opt_generic()
1393 opt[storeEnd] = lastStretch; /* note: litlen will be fixed */ in ZSTD_compressBlock_opt_generic()