Lines Matching refs:matchLength
270 U32 const matchLength, in ZSTD_getMatchPrice() argument
276 U32 const mlBase = matchLength - MINMATCH; in ZSTD_getMatchPrice()
277 assert(matchLength >= MINMATCH); in ZSTD_getMatchPrice()
294 DEBUGLOG(8, "ZSTD_getMatchPrice(ml:%u) = %u", matchLength, price); in ZSTD_getMatchPrice()
302 U32 offsetCode, U32 matchLength) in ZSTD_updateStats() argument
326 { U32 const mlBase = matchLength - MINMATCH; in ZSTD_updateStats()
425 …size_t matchLength = MIN(commonLengthSmaller, commonLengthLarger); /* guaranteed minimum nb of c… in ZSTD_insertBt1() local
449 if (!extDict || (matchIndex+matchLength >= dictLimit)) { in ZSTD_insertBt1()
450 assert(matchIndex+matchLength >= dictLimit); /* might be wrong if actually extDict */ in ZSTD_insertBt1()
452 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iend); in ZSTD_insertBt1()
455 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_insertBt1()
456 if (matchIndex+matchLength >= dictLimit) in ZSTD_insertBt1()
460 if (matchLength > bestLength) { in ZSTD_insertBt1()
461 bestLength = matchLength; in ZSTD_insertBt1()
462 if (matchLength > matchEndIdx - matchIndex) in ZSTD_insertBt1()
463 matchEndIdx = matchIndex + (U32)matchLength; in ZSTD_insertBt1()
466 if (ip+matchLength == iend) { /* equal : no way to know if inf or sup */ in ZSTD_insertBt1()
470 if (match[matchLength] < ip[matchLength]) { /* necessarily within buffer */ in ZSTD_insertBt1()
473 …commonLengthSmaller = matchLength; /* all smaller will now have at least this guaranteed common… in ZSTD_insertBt1()
480 commonLengthLarger = matchLength; in ZSTD_insertBt1()
657 …size_t matchLength = MIN(commonLengthSmaller, commonLengthLarger); /* guaranteed minimum nb of c… in ZSTD_insertBtAndGetAllMatches() local
660 …de == ZSTD_noDict) || (dictMode == ZSTD_dictMatchState) || (matchIndex+matchLength >= dictLimit)) { in ZSTD_insertBtAndGetAllMatches()
661 … assert(matchIndex+matchLength >= dictLimit); /* ensure the condition is correct when !extDict */ in ZSTD_insertBtAndGetAllMatches()
663 …if (matchIndex >= dictLimit) assert(memcmp(match, ip, matchLength) == 0); /* ensure early section… in ZSTD_insertBtAndGetAllMatches()
664 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iLimit); in ZSTD_insertBtAndGetAllMatches()
667 …assert(memcmp(match, ip, matchLength) == 0); /* ensure early section of match is equal as expecte… in ZSTD_insertBtAndGetAllMatches()
668 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dictEnd, prefixStar… in ZSTD_insertBtAndGetAllMatches()
669 if (matchIndex+matchLength >= dictLimit) in ZSTD_insertBtAndGetAllMatches()
673 if (matchLength > bestLength) { in ZSTD_insertBtAndGetAllMatches()
675 (U32)matchLength, curr - matchIndex, curr - matchIndex + ZSTD_REP_MOVE); in ZSTD_insertBtAndGetAllMatches()
677 if (matchLength > matchEndIdx - matchIndex) in ZSTD_insertBtAndGetAllMatches()
678 matchEndIdx = matchIndex + (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
679 bestLength = matchLength; in ZSTD_insertBtAndGetAllMatches()
681 matches[mnum].len = (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
683 if ( (matchLength > ZSTD_OPT_NUM) in ZSTD_insertBtAndGetAllMatches()
684 | (ip+matchLength == iLimit) /* equal : no way to know if inf or sup */) { in ZSTD_insertBtAndGetAllMatches()
690 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
693 …commonLengthSmaller = matchLength; /* all smaller will now have at least this guaranteed common… in ZSTD_insertBtAndGetAllMatches()
699 commonLengthLarger = matchLength; in ZSTD_insertBtAndGetAllMatches()
715 …size_t matchLength = MIN(commonLengthSmaller, commonLengthLarger); /* guaranteed minimum nb of c… in ZSTD_insertBtAndGetAllMatches() local
717 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dmsEnd, prefixStart… in ZSTD_insertBtAndGetAllMatches()
718 if (dictMatchIndex+matchLength >= dmsHighLimit) in ZSTD_insertBtAndGetAllMatches()
721 if (matchLength > bestLength) { in ZSTD_insertBtAndGetAllMatches()
724 (U32)matchLength, curr - matchIndex, curr - matchIndex + ZSTD_REP_MOVE); in ZSTD_insertBtAndGetAllMatches()
725 if (matchLength > matchEndIdx - matchIndex) in ZSTD_insertBtAndGetAllMatches()
726 matchEndIdx = matchIndex + (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
727 bestLength = matchLength; in ZSTD_insertBtAndGetAllMatches()
729 matches[mnum].len = (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
731 if ( (matchLength > ZSTD_OPT_NUM) in ZSTD_insertBtAndGetAllMatches()
732 | (ip+matchLength == iLimit) /* equal : no way to know if inf or sup */) { in ZSTD_insertBtAndGetAllMatches()
738 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
739 …commonLengthSmaller = matchLength; /* all smaller will now have at least this guaranteed common… in ZSTD_insertBtAndGetAllMatches()
743 commonLengthLarger = matchLength; in ZSTD_insertBtAndGetAllMatches()
799 if (currPos >= currSeq.litLength + currSeq.matchLength) { in ZSTD_optLdm_skipRawSeqStoreBytes()
800 currPos -= currSeq.litLength + currSeq.matchLength; in ZSTD_optLdm_skipRawSeqStoreBytes()
832 assert(optLdm->seqStore.posInSequence <= currSeq.litLength + currSeq.matchLength); in ZSTD_opt_getNextMatchAndUpdateSeqStore()
838 currSeq.matchLength - ((U32)optLdm->seqStore.posInSequence - currSeq.litLength) : in ZSTD_opt_getNextMatchAndUpdateSeqStore()
839 currSeq.matchLength; in ZSTD_opt_getNextMatchAndUpdateSeqStore()