Lines Matching refs:matchLength

142 FORCE_INLINE U32 ZSTD_getPrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 offset, U32 matchLength, const int ultra)
149 return ZSTD_getLiteralPrice(seqStorePtr, litLength, literals) + ZSTD_highbit32((U32)matchLength + 1) + 16 + offCode;
158 const BYTE mlCode = (matchLength > 127) ? (BYTE)ZSTD_highbit32(matchLength) + ML_deltaCode : ML_Code[matchLength];
165 ZSTD_STATIC void ZSTD_updatePrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 offset, U32 matchLength)
192 const BYTE mlCode = (matchLength > 127) ? (BYTE)ZSTD_highbit32(matchLength) + ML_deltaCode : ML_Code[matchLength];
297 size_t matchLength = MIN(commonLengthSmaller, commonLengthLarger); /* guaranteed minimum nb of common bytes */
300 if ((!extDict) || (matchIndex + matchLength >= dictLimit)) {
302 if (match[matchLength] == ip[matchLength]) {
303 matchLength += ZSTD_count(ip + matchLength + 1, match + matchLength + 1, iLimit) + 1;
307 matchLength += ZSTD_count_2segments(ip + matchLength, match + matchLength, iLimit, dictEnd, prefixStart);
308 if (matchIndex + matchLength >= dictLimit)
309 match = base + matchIndex; /* to prepare for next usage of match[matchLength] */
312 if (matchLength > bestLength) {
313 if (matchLength > matchEndIdx - matchIndex)
314 matchEndIdx = matchIndex + (U32)matchLength;
315 bestLength = matchLength;
317 matches[mnum].len = (U32)matchLength;
319 if (matchLength > ZSTD_OPT_NUM)
321 if (ip + matchLength == iLimit) /* equal : no way to know if inf or sup */
325 if (match[matchLength] < ip[matchLength]) {
328 commonLengthSmaller = matchLength; /* all smaller will now have at least this guaranteed common length */
338 commonLengthLarger = matchLength;