Lines Matching refs:matchLength
258 U32 const matchLength, in ZSTD_getMatchPrice() argument
264 U32 const mlBase = matchLength - MINMATCH; in ZSTD_getMatchPrice()
265 assert(matchLength >= MINMATCH); in ZSTD_getMatchPrice()
282 DEBUGLOG(8, "ZSTD_getMatchPrice(ml:%u) = %u", matchLength, price); in ZSTD_getMatchPrice()
290 U32 offsetCode, U32 matchLength) in ZSTD_updateStats() argument
314 { U32 const mlBase = matchLength - MINMATCH; in ZSTD_updateStats()
413 …size_t matchLength = MIN(commonLengthSmaller, commonLengthLarger); /* guaranteed minimum nb of c… in ZSTD_insertBt1() local
437 if (!extDict || (matchIndex+matchLength >= dictLimit)) { in ZSTD_insertBt1()
438 assert(matchIndex+matchLength >= dictLimit); /* might be wrong if actually extDict */ in ZSTD_insertBt1()
440 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iend); in ZSTD_insertBt1()
443 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_insertBt1()
444 if (matchIndex+matchLength >= dictLimit) in ZSTD_insertBt1()
448 if (matchLength > bestLength) { in ZSTD_insertBt1()
449 bestLength = matchLength; in ZSTD_insertBt1()
450 if (matchLength > matchEndIdx - matchIndex) in ZSTD_insertBt1()
451 matchEndIdx = matchIndex + (U32)matchLength; in ZSTD_insertBt1()
454 if (ip+matchLength == iend) { /* equal : no way to know if inf or sup */ in ZSTD_insertBt1()
458 if (match[matchLength] < ip[matchLength]) { /* necessarily within buffer */ in ZSTD_insertBt1()
461 …commonLengthSmaller = matchLength; /* all smaller will now have at least this guaranteed common… in ZSTD_insertBt1()
468 commonLengthLarger = matchLength; in ZSTD_insertBt1()
645 …size_t matchLength = MIN(commonLengthSmaller, commonLengthLarger); /* guaranteed minimum nb of c… in ZSTD_insertBtAndGetAllMatches() local
648 …de == ZSTD_noDict) || (dictMode == ZSTD_dictMatchState) || (matchIndex+matchLength >= dictLimit)) { in ZSTD_insertBtAndGetAllMatches()
649 … assert(matchIndex+matchLength >= dictLimit); /* ensure the condition is correct when !extDict */ in ZSTD_insertBtAndGetAllMatches()
651 …if (matchIndex >= dictLimit) assert(memcmp(match, ip, matchLength) == 0); /* ensure early section… in ZSTD_insertBtAndGetAllMatches()
652 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iLimit); in ZSTD_insertBtAndGetAllMatches()
655 …assert(memcmp(match, ip, matchLength) == 0); /* ensure early section of match is equal as expecte… in ZSTD_insertBtAndGetAllMatches()
656 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dictEnd, prefixStar… in ZSTD_insertBtAndGetAllMatches()
657 if (matchIndex+matchLength >= dictLimit) in ZSTD_insertBtAndGetAllMatches()
661 if (matchLength > bestLength) { in ZSTD_insertBtAndGetAllMatches()
663 (U32)matchLength, curr - matchIndex, curr - matchIndex + ZSTD_REP_MOVE); in ZSTD_insertBtAndGetAllMatches()
665 if (matchLength > matchEndIdx - matchIndex) in ZSTD_insertBtAndGetAllMatches()
666 matchEndIdx = matchIndex + (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
667 bestLength = matchLength; in ZSTD_insertBtAndGetAllMatches()
669 matches[mnum].len = (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
671 if ( (matchLength > ZSTD_OPT_NUM) in ZSTD_insertBtAndGetAllMatches()
672 | (ip+matchLength == iLimit) /* equal : no way to know if inf or sup */) { in ZSTD_insertBtAndGetAllMatches()
678 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
681 …commonLengthSmaller = matchLength; /* all smaller will now have at least this guaranteed common… in ZSTD_insertBtAndGetAllMatches()
687 commonLengthLarger = matchLength; in ZSTD_insertBtAndGetAllMatches()
702 …size_t matchLength = MIN(commonLengthSmaller, commonLengthLarger); /* guaranteed minimum nb of c… in ZSTD_insertBtAndGetAllMatches() local
704 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dmsEnd, prefixStart… in ZSTD_insertBtAndGetAllMatches()
705 if (dictMatchIndex+matchLength >= dmsHighLimit) in ZSTD_insertBtAndGetAllMatches()
708 if (matchLength > bestLength) { in ZSTD_insertBtAndGetAllMatches()
711 (U32)matchLength, curr - matchIndex, curr - matchIndex + ZSTD_REP_MOVE); in ZSTD_insertBtAndGetAllMatches()
712 if (matchLength > matchEndIdx - matchIndex) in ZSTD_insertBtAndGetAllMatches()
713 matchEndIdx = matchIndex + (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
714 bestLength = matchLength; in ZSTD_insertBtAndGetAllMatches()
716 matches[mnum].len = (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
718 if ( (matchLength > ZSTD_OPT_NUM) in ZSTD_insertBtAndGetAllMatches()
719 | (ip+matchLength == iLimit) /* equal : no way to know if inf or sup */) { in ZSTD_insertBtAndGetAllMatches()
725 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
726 …commonLengthSmaller = matchLength; /* all smaller will now have at least this guaranteed common… in ZSTD_insertBtAndGetAllMatches()
730 commonLengthLarger = matchLength; in ZSTD_insertBtAndGetAllMatches()
786 if (currPos >= currSeq.litLength + currSeq.matchLength) { in ZSTD_optLdm_skipRawSeqStoreBytes()
787 currPos -= currSeq.litLength + currSeq.matchLength; in ZSTD_optLdm_skipRawSeqStoreBytes()
819 assert(optLdm->seqStore.posInSequence <= currSeq.litLength + currSeq.matchLength); in ZSTD_opt_getNextMatchAndUpdateSeqStore()
825 currSeq.matchLength - ((U32)optLdm->seqStore.posInSequence - currSeq.litLength) : in ZSTD_opt_getNextMatchAndUpdateSeqStore()
826 currSeq.matchLength; in ZSTD_opt_getNextMatchAndUpdateSeqStore()