Lines Matching refs:matches
236 ZSTD_match_t *matches, const U32 minMatchLen) in ZSTD_insertBtAndGetAllMatches() argument
282 matches[mnum].off = ZSTD_REP_MOVE_OPT + curr - matchIndex3; in ZSTD_insertBtAndGetAllMatches()
283 matches[mnum].len = (U32)currMl; in ZSTD_insertBtAndGetAllMatches()
316 matches[mnum].off = ZSTD_REP_MOVE_OPT + curr - matchIndex; in ZSTD_insertBtAndGetAllMatches()
317 matches[mnum].len = (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
356 …*const ip, const BYTE *const iLimit, const U32 maxNbAttempts, const U32 mls, ZSTD_match_t *matches, in ZSTD_BtGetAllMatches() argument
362 return ZSTD_insertBtAndGetAllMatches(zc, ip, iLimit, maxNbAttempts, mls, 0, matches, minMatchLen); in ZSTD_BtGetAllMatches()
367 ZSTD_match_t *matches, const U32 minMatchLen) in ZSTD_BtGetAllMatches_selectMLS() argument
370 case 3: return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 3, matches, minMatchLen); in ZSTD_BtGetAllMatches_selectMLS()
372 case 4: return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 4, matches, minMatchLen); in ZSTD_BtGetAllMatches_selectMLS()
373 case 5: return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 5, matches, minMatchLen); in ZSTD_BtGetAllMatches_selectMLS()
375 case 6: return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 6, matches, minMatchLen); in ZSTD_BtGetAllMatches_selectMLS()
381 ZSTD_match_t *matches, const U32 minMatchLen) in ZSTD_BtGetAllMatches_extDict() argument
386 return ZSTD_insertBtAndGetAllMatches(zc, ip, iLimit, maxNbAttempts, mls, 1, matches, minMatchLen); in ZSTD_BtGetAllMatches_extDict()
391 ZSTD_match_t *matches, const U32 minMatchLen) in ZSTD_BtGetAllMatches_selectMLS_extDict() argument
394 …case 3: return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 3, matches, minMatc… in ZSTD_BtGetAllMatches_selectMLS_extDict()
396 …case 4: return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 4, matches, minMatc… in ZSTD_BtGetAllMatches_selectMLS_extDict()
397 …case 5: return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 5, matches, minMatc… in ZSTD_BtGetAllMatches_selectMLS_extDict()
399 …case 6: return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 6, matches, minMatc… in ZSTD_BtGetAllMatches_selectMLS_extDict()
424 ZSTD_match_t *matches = seqStorePtr->matchTable; in ZSTD_compressBlock_opt_generic() local
472 match_num = ZSTD_BtGetAllMatches_selectMLS(ctx, ip, iend, maxSearches, mls, matches, minMatch); in ZSTD_compressBlock_opt_generic()
479 …if (match_num && (matches[match_num - 1].len > sufficient_len || matches[match_num - 1].len >= ZST… in ZSTD_compressBlock_opt_generic()
480 best_mlen = matches[match_num - 1].len; in ZSTD_compressBlock_opt_generic()
481 best_off = matches[match_num - 1].off; in ZSTD_compressBlock_opt_generic()
490 mlen = (u > 0) ? matches[u - 1].len + 1 : best_mlen; in ZSTD_compressBlock_opt_generic()
491 best_mlen = matches[u].len; in ZSTD_compressBlock_opt_generic()
493 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
495 SET_PRICE(mlen, mlen, matches[u].off, litlen, price); /* note : macro modifies last_pos */ in ZSTD_compressBlock_opt_generic()
591 match_num = ZSTD_BtGetAllMatches_selectMLS(ctx, inr, iend, maxSearches, mls, matches, best_mlen); in ZSTD_compressBlock_opt_generic()
593 …if (match_num > 0 && (matches[match_num - 1].len > sufficient_len || cur + matches[match_num - 1].… in ZSTD_compressBlock_opt_generic()
594 best_mlen = matches[match_num - 1].len; in ZSTD_compressBlock_opt_generic()
595 best_off = matches[match_num - 1].off; in ZSTD_compressBlock_opt_generic()
602 mlen = (u > 0) ? matches[u - 1].len + 1 : best_mlen; in ZSTD_compressBlock_opt_generic()
603 best_mlen = matches[u].len; in ZSTD_compressBlock_opt_generic()
610 matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
612 … price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
615 …price = opt[cur].price + ZSTD_getPrice(seqStorePtr, 0, NULL, matches[u].off - 1, mlen - MINMATCH, … in ZSTD_compressBlock_opt_generic()
619 SET_PRICE(cur + mlen, mlen, matches[u].off, litlen, price); in ZSTD_compressBlock_opt_generic()
721 ZSTD_match_t *matches = seqStorePtr->matchTable; in ZSTD_compressBlock_opt_extDict_generic() local
780 …match_num = ZSTD_BtGetAllMatches_selectMLS_extDict(ctx, ip, iend, maxSearches, mls, matches, minMa… in ZSTD_compressBlock_opt_extDict_generic()
794 …if (match_num && (matches[match_num - 1].len > sufficient_len || matches[match_num - 1].len >= ZST… in ZSTD_compressBlock_opt_extDict_generic()
795 best_mlen = matches[match_num - 1].len; in ZSTD_compressBlock_opt_extDict_generic()
796 best_off = matches[match_num - 1].off; in ZSTD_compressBlock_opt_extDict_generic()
806 mlen = (u > 0) ? matches[u - 1].len + 1 : best_mlen; in ZSTD_compressBlock_opt_extDict_generic()
807 best_mlen = matches[u].len; in ZSTD_compressBlock_opt_extDict_generic()
810 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_extDict_generic()
812 SET_PRICE(mlen, mlen, matches[u].off, litlen, price); in ZSTD_compressBlock_opt_extDict_generic()
905 …match_num = ZSTD_BtGetAllMatches_selectMLS_extDict(ctx, inr, iend, maxSearches, mls, matches, minM… in ZSTD_compressBlock_opt_extDict_generic()
907 …if (match_num > 0 && (matches[match_num - 1].len > sufficient_len || cur + matches[match_num - 1].… in ZSTD_compressBlock_opt_extDict_generic()
908 best_mlen = matches[match_num - 1].len; in ZSTD_compressBlock_opt_extDict_generic()
909 best_off = matches[match_num - 1].off; in ZSTD_compressBlock_opt_extDict_generic()
916 mlen = (u > 0) ? matches[u - 1].len + 1 : best_mlen; in ZSTD_compressBlock_opt_extDict_generic()
917 best_mlen = matches[u].len; in ZSTD_compressBlock_opt_extDict_generic()
924 matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_extDict_generic()
926 … price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_extDict_generic()
929 …price = opt[cur].price + ZSTD_getPrice(seqStorePtr, 0, NULL, matches[u].off - 1, mlen - MINMATCH, … in ZSTD_compressBlock_opt_extDict_generic()
933 SET_PRICE(cur + mlen, mlen, matches[u].off, litlen, price); in ZSTD_compressBlock_opt_extDict_generic()