Lines Matching defs:matches

321     price += BITCOST_MULTIPLIER / 5;   /* heuristic : make matches a bit more costly to favor less sequences -> faster decompression speed */
557 ZSTD_match_t* matches, /* store result (found matches) in this table (presumed large enough) */
647 matches[mnum].off = STORE_REPCODE(repCode - ll0 + 1); /* expect value between 1 and 3 */
648 matches[mnum].len = (U32)repLen;
676 matches[0].off = STORE_OFFSET(curr - matchIndex3);
677 matches[0].len = (U32)mlen;
715 matches[mnum].off = STORE_OFFSET(curr - matchIndex);
716 matches[mnum].len = (U32)matchLength;
762 matches[mnum].off = STORE_OFFSET(curr - matchIndex);
763 matches[mnum].len = (U32)matchLength;
796 ZSTD_match_t* matches,
812 return ZSTD_insertBtAndGetAllMatches(matches, ms, nextToUpdate3, ip, iHighLimit, dictMode, rep, ll0, lengthToBeat, mls);
819 ZSTD_match_t* matches, \
829 matches, ms, nextToUpdate3, ip, iHighLimit, \
957 * into 'matches'. Maintains the correct ordering of 'matches'.
959 static void ZSTD_optLdm_maybeAddMatch(ZSTD_match_t* matches, U32* nbMatches,
973 if (*nbMatches == 0 || ((candidateMatchLength > matches[*nbMatches-1].len) && *nbMatches < ZSTD_OPT_NUM)) {
977 matches[*nbMatches].len = candidateMatchLength;
978 matches[*nbMatches].off = candidateOffCode;
988 ZSTD_match_t* matches, U32* nbMatches,
1006 ZSTD_optLdm_maybeAddMatch(matches, nbMatches, optLdm, currPosInBlock);
1061 ZSTD_match_t* const matches = optStatePtr->matchTable;
1083 U32 nbMatches = getAllMatches(matches, ms, &nextToUpdate3, ip, iend, rep, ll0, minMatch);
1084 ZSTD_optLdm_processMatchCandidate(&optLdm, matches, &nbMatches,
1100 { U32 const maxML = matches[nbMatches-1].len;
1101 U32 const maxOffcode = matches[nbMatches-1].off;
1102 DEBUGLOG(6, "found %u matches of maxLength=%u and maxOffCode=%u at cPos=%u => start new series",
1116 /* set prices for first matches starting position == 0 */
1125 U32 const offcode = matches[matchNb].off;
1126 U32 const end = matches[matchNb].len;
1200 U32 nbMatches = getAllMatches(matches, ms, &nextToUpdate3, inr, iend, opt[cur].rep, ll0, minMatch);
1203 ZSTD_optLdm_processMatchCandidate(&optLdm, matches, &nbMatches,
1211 { U32 const maxML = matches[nbMatches-1].len;
1212 DEBUGLOG(7, "cPos:%zi==rPos:%u, found %u matches, of maxLength=%u",
1218 lastSequence.off = matches[nbMatches-1].off;
1226 /* set prices using matches found at position == cur */
1228 U32 const offset = matches[matchNb].off;
1229 U32 const lastML = matches[matchNb].len;
1230 U32 const startML = (matchNb>0) ? matches[matchNb-1].len+1 : minMatch;
1234 matchNb, matches[matchNb].off, lastML, litlen);