Lines Matching refs:matchLength
326 U32 const matchLength, in ZSTD_getMatchPrice() argument
332 U32 const mlBase = matchLength - MINMATCH; in ZSTD_getMatchPrice()
333 assert(matchLength >= MINMATCH); in ZSTD_getMatchPrice()
351 DEBUGLOG(8, "ZSTD_getMatchPrice(ml:%u) = %u", matchLength, price); in ZSTD_getMatchPrice()
359 U32 offBase, U32 matchLength) in ZSTD_updateStats() argument
383 { U32 const mlBase = matchLength - MINMATCH; in ZSTD_updateStats()
492 …size_t matchLength = MIN(commonLengthSmaller, commonLengthLarger); /* guaranteed minimum nb of c… in ZSTD_insertBt1() local
516 if (!extDict || (matchIndex+matchLength >= dictLimit)) { in ZSTD_insertBt1()
517 assert(matchIndex+matchLength >= dictLimit); /* might be wrong if actually extDict */ in ZSTD_insertBt1()
519 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iend); in ZSTD_insertBt1()
522 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_insertBt1()
523 if (matchIndex+matchLength >= dictLimit) in ZSTD_insertBt1()
527 if (matchLength > bestLength) { in ZSTD_insertBt1()
528 bestLength = matchLength; in ZSTD_insertBt1()
529 if (matchLength > matchEndIdx - matchIndex) in ZSTD_insertBt1()
530 matchEndIdx = matchIndex + (U32)matchLength; in ZSTD_insertBt1()
533 if (ip+matchLength == iend) { /* equal : no way to know if inf or sup */ in ZSTD_insertBt1()
537 if (match[matchLength] < ip[matchLength]) { /* necessarily within buffer */ in ZSTD_insertBt1()
540 …commonLengthSmaller = matchLength; /* all smaller will now have at least this guaranteed common… in ZSTD_insertBt1()
547 commonLengthLarger = matchLength; in ZSTD_insertBt1()
728 …size_t matchLength = MIN(commonLengthSmaller, commonLengthLarger); /* guaranteed minimum nb of c… in ZSTD_insertBtAndGetAllMatches() local
731 …de == ZSTD_noDict) || (dictMode == ZSTD_dictMatchState) || (matchIndex+matchLength >= dictLimit)) { in ZSTD_insertBtAndGetAllMatches()
732 … assert(matchIndex+matchLength >= dictLimit); /* ensure the condition is correct when !extDict */ in ZSTD_insertBtAndGetAllMatches()
734 …if (matchIndex >= dictLimit) assert(memcmp(match, ip, matchLength) == 0); /* ensure early section… in ZSTD_insertBtAndGetAllMatches()
735 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iLimit); in ZSTD_insertBtAndGetAllMatches()
738 …assert(memcmp(match, ip, matchLength) == 0); /* ensure early section of match is equal as expecte… in ZSTD_insertBtAndGetAllMatches()
739 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dictEnd, prefixStar… in ZSTD_insertBtAndGetAllMatches()
740 if (matchIndex+matchLength >= dictLimit) in ZSTD_insertBtAndGetAllMatches()
744 if (matchLength > bestLength) { in ZSTD_insertBtAndGetAllMatches()
746 (U32)matchLength, curr - matchIndex, OFFSET_TO_OFFBASE(curr - matchIndex)); in ZSTD_insertBtAndGetAllMatches()
748 if (matchLength > matchEndIdx - matchIndex) in ZSTD_insertBtAndGetAllMatches()
749 matchEndIdx = matchIndex + (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
750 bestLength = matchLength; in ZSTD_insertBtAndGetAllMatches()
752 matches[mnum].len = (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
754 if ( (matchLength > ZSTD_OPT_NUM) in ZSTD_insertBtAndGetAllMatches()
755 | (ip+matchLength == iLimit) /* equal : no way to know if inf or sup */) { in ZSTD_insertBtAndGetAllMatches()
760 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
763 …commonLengthSmaller = matchLength; /* all smaller will now have at least this guaranteed common… in ZSTD_insertBtAndGetAllMatches()
769 commonLengthLarger = matchLength; in ZSTD_insertBtAndGetAllMatches()
785 …size_t matchLength = MIN(commonLengthSmaller, commonLengthLarger); /* guaranteed minimum nb of c… in ZSTD_insertBtAndGetAllMatches() local
787 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dmsEnd, prefixStart… in ZSTD_insertBtAndGetAllMatches()
788 if (dictMatchIndex+matchLength >= dmsHighLimit) in ZSTD_insertBtAndGetAllMatches()
791 if (matchLength > bestLength) { in ZSTD_insertBtAndGetAllMatches()
794 (U32)matchLength, curr - matchIndex, OFFSET_TO_OFFBASE(curr - matchIndex)); in ZSTD_insertBtAndGetAllMatches()
795 if (matchLength > matchEndIdx - matchIndex) in ZSTD_insertBtAndGetAllMatches()
796 matchEndIdx = matchIndex + (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
797 bestLength = matchLength; in ZSTD_insertBtAndGetAllMatches()
799 matches[mnum].len = (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
801 if ( (matchLength > ZSTD_OPT_NUM) in ZSTD_insertBtAndGetAllMatches()
802 | (ip+matchLength == iLimit) /* equal : no way to know if inf or sup */) { in ZSTD_insertBtAndGetAllMatches()
807 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
808 …commonLengthSmaller = matchLength; /* all smaller will now have at least this guaranteed common… in ZSTD_insertBtAndGetAllMatches()
812 commonLengthLarger = matchLength; in ZSTD_insertBtAndGetAllMatches()
924 if (currPos >= currSeq.litLength + currSeq.matchLength) { in ZSTD_optLdm_skipRawSeqStoreBytes()
925 currPos -= currSeq.litLength + currSeq.matchLength; in ZSTD_optLdm_skipRawSeqStoreBytes()
959 assert(optLdm->seqStore.posInSequence <= currSeq.litLength + currSeq.matchLength); in ZSTD_opt_getNextMatchAndUpdateSeqStore()
965 currSeq.matchLength - ((U32)optLdm->seqStore.posInSequence - currSeq.litLength) : in ZSTD_opt_getNextMatchAndUpdateSeqStore()
966 currSeq.matchLength; in ZSTD_opt_getNextMatchAndUpdateSeqStore()