Lines Matching refs:matches
226 ZSTD_match_t *matches, const U32 minMatchLen) in ZSTD_insertBtAndGetAllMatches() argument
272 matches[mnum].off = ZSTD_REP_MOVE_OPT + curr - matchIndex3; in ZSTD_insertBtAndGetAllMatches()
273 matches[mnum].len = (U32)currMl; in ZSTD_insertBtAndGetAllMatches()
306 matches[mnum].off = ZSTD_REP_MOVE_OPT + curr - matchIndex; in ZSTD_insertBtAndGetAllMatches()
307 matches[mnum].len = (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
346 …*const ip, const BYTE *const iLimit, const U32 maxNbAttempts, const U32 mls, ZSTD_match_t *matches, in ZSTD_BtGetAllMatches() argument
352 return ZSTD_insertBtAndGetAllMatches(zc, ip, iLimit, maxNbAttempts, mls, 0, matches, minMatchLen); in ZSTD_BtGetAllMatches()
357 ZSTD_match_t *matches, const U32 minMatchLen) in ZSTD_BtGetAllMatches_selectMLS() argument
360 case 3: return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 3, matches, minMatchLen); in ZSTD_BtGetAllMatches_selectMLS()
362 case 4: return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 4, matches, minMatchLen); in ZSTD_BtGetAllMatches_selectMLS()
363 case 5: return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 5, matches, minMatchLen); in ZSTD_BtGetAllMatches_selectMLS()
365 case 6: return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 6, matches, minMatchLen); in ZSTD_BtGetAllMatches_selectMLS()
371 ZSTD_match_t *matches, const U32 minMatchLen) in ZSTD_BtGetAllMatches_extDict() argument
376 return ZSTD_insertBtAndGetAllMatches(zc, ip, iLimit, maxNbAttempts, mls, 1, matches, minMatchLen); in ZSTD_BtGetAllMatches_extDict()
381 ZSTD_match_t *matches, const U32 minMatchLen) in ZSTD_BtGetAllMatches_selectMLS_extDict() argument
384 …case 3: return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 3, matches, minMatc… in ZSTD_BtGetAllMatches_selectMLS_extDict()
386 …case 4: return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 4, matches, minMatc… in ZSTD_BtGetAllMatches_selectMLS_extDict()
387 …case 5: return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 5, matches, minMatc… in ZSTD_BtGetAllMatches_selectMLS_extDict()
389 …case 6: return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 6, matches, minMatc… in ZSTD_BtGetAllMatches_selectMLS_extDict()
414 ZSTD_match_t *matches = seqStorePtr->matchTable; in ZSTD_compressBlock_opt_generic() local
462 match_num = ZSTD_BtGetAllMatches_selectMLS(ctx, ip, iend, maxSearches, mls, matches, minMatch); in ZSTD_compressBlock_opt_generic()
469 …if (match_num && (matches[match_num - 1].len > sufficient_len || matches[match_num - 1].len >= ZST… in ZSTD_compressBlock_opt_generic()
470 best_mlen = matches[match_num - 1].len; in ZSTD_compressBlock_opt_generic()
471 best_off = matches[match_num - 1].off; in ZSTD_compressBlock_opt_generic()
480 mlen = (u > 0) ? matches[u - 1].len + 1 : best_mlen; in ZSTD_compressBlock_opt_generic()
481 best_mlen = matches[u].len; in ZSTD_compressBlock_opt_generic()
483 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
485 SET_PRICE(mlen, mlen, matches[u].off, litlen, price); /* note : macro modifies last_pos */ in ZSTD_compressBlock_opt_generic()
581 match_num = ZSTD_BtGetAllMatches_selectMLS(ctx, inr, iend, maxSearches, mls, matches, best_mlen); in ZSTD_compressBlock_opt_generic()
583 …if (match_num > 0 && (matches[match_num - 1].len > sufficient_len || cur + matches[match_num - 1].… in ZSTD_compressBlock_opt_generic()
584 best_mlen = matches[match_num - 1].len; in ZSTD_compressBlock_opt_generic()
585 best_off = matches[match_num - 1].off; in ZSTD_compressBlock_opt_generic()
592 mlen = (u > 0) ? matches[u - 1].len + 1 : best_mlen; in ZSTD_compressBlock_opt_generic()
593 best_mlen = matches[u].len; in ZSTD_compressBlock_opt_generic()
600 matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
602 … price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
605 …price = opt[cur].price + ZSTD_getPrice(seqStorePtr, 0, NULL, matches[u].off - 1, mlen - MINMATCH, … in ZSTD_compressBlock_opt_generic()
609 SET_PRICE(cur + mlen, mlen, matches[u].off, litlen, price); in ZSTD_compressBlock_opt_generic()
711 ZSTD_match_t *matches = seqStorePtr->matchTable; in ZSTD_compressBlock_opt_extDict_generic() local
770 …match_num = ZSTD_BtGetAllMatches_selectMLS_extDict(ctx, ip, iend, maxSearches, mls, matches, minMa… in ZSTD_compressBlock_opt_extDict_generic()
784 …if (match_num && (matches[match_num - 1].len > sufficient_len || matches[match_num - 1].len >= ZST… in ZSTD_compressBlock_opt_extDict_generic()
785 best_mlen = matches[match_num - 1].len; in ZSTD_compressBlock_opt_extDict_generic()
786 best_off = matches[match_num - 1].off; in ZSTD_compressBlock_opt_extDict_generic()
796 mlen = (u > 0) ? matches[u - 1].len + 1 : best_mlen; in ZSTD_compressBlock_opt_extDict_generic()
797 best_mlen = matches[u].len; in ZSTD_compressBlock_opt_extDict_generic()
800 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_extDict_generic()
802 SET_PRICE(mlen, mlen, matches[u].off, litlen, price); in ZSTD_compressBlock_opt_extDict_generic()
895 …match_num = ZSTD_BtGetAllMatches_selectMLS_extDict(ctx, inr, iend, maxSearches, mls, matches, minM… in ZSTD_compressBlock_opt_extDict_generic()
897 …if (match_num > 0 && (matches[match_num - 1].len > sufficient_len || cur + matches[match_num - 1].… in ZSTD_compressBlock_opt_extDict_generic()
898 best_mlen = matches[match_num - 1].len; in ZSTD_compressBlock_opt_extDict_generic()
899 best_off = matches[match_num - 1].off; in ZSTD_compressBlock_opt_extDict_generic()
906 mlen = (u > 0) ? matches[u - 1].len + 1 : best_mlen; in ZSTD_compressBlock_opt_extDict_generic()
907 best_mlen = matches[u].len; in ZSTD_compressBlock_opt_extDict_generic()
914 matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_extDict_generic()
916 … price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_extDict_generic()
919 …price = opt[cur].price + ZSTD_getPrice(seqStorePtr, 0, NULL, matches[u].off - 1, mlen - MINMATCH, … in ZSTD_compressBlock_opt_extDict_generic()
923 SET_PRICE(cur + mlen, mlen, matches[u].off, litlen, price); in ZSTD_compressBlock_opt_extDict_generic()