Home
last modified time | relevance | path

Searched refs:matchLength (Results 1 – 10 of 10) sorted by relevance

/linux-6.15/lib/zstd/compress/
H A Dzstd_opt.c333 assert(matchLength >= MINMATCH); in ZSTD_getMatchPrice()
519 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iend); in ZSTD_insertBt1()
522matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_insertBt1()
528 bestLength = matchLength; in ZSTD_insertBt1()
537 if (match[matchLength] < ip[matchLength]) { /* necessarily within buffer */ in ZSTD_insertBt1()
735 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iLimit); in ZSTD_insertBtAndGetAllMatches()
739matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dictEnd, prefixStar… in ZSTD_insertBtAndGetAllMatches()
760 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
787matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dmsEnd, prefixStart… in ZSTD_insertBtAndGetAllMatches()
807 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
[all …]
H A Dzstd_lazy.c124 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iend); in ZSTD_insertDUBT1()
127matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_insertDUBT1()
139 if (match[matchLength] < ip[matchLength]) { /* necessarily within buffer */ in ZSTD_insertDUBT1()
204matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_DUBT_findBetterDictMatch()
220 if (match[matchLength] < ip[matchLength]) { in ZSTD_DUBT_findBetterDictMatch()
332 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iend); in ZSTD_DUBT_findBestMatch()
335matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_DUBT_findBestMatch()
355 if (match[matchLength] < ip[matchLength]) { in ZSTD_DUBT_findBestMatch()
1582 size_t matchLength=0; in ZSTD_compressBlock_lazy_generic() local
1614 if (matchLength < 4) { in ZSTD_compressBlock_lazy_generic()
[all …]
H A Dzstd_ldm.c215 size_t matchLength = 0; in ZSTD_ldm_countBackwardsMatch() local
219 matchLength++; in ZSTD_ldm_countBackwardsMatch()
221 return matchLength; in ZSTD_ldm_countBackwardsMatch()
237 return matchLength; in ZSTD_ldm_countBackwardsMatch_2segments()
240matchLength += ZSTD_ldm_countBackwardsMatch(pIn - matchLength, pAnchor, pExtDictEnd, pExtDictStart… in ZSTD_ldm_countBackwardsMatch_2segments()
242 return matchLength; in ZSTD_ldm_countBackwardsMatch_2segments()
616 if (srcSize < seq->matchLength) { in ZSTD_ldm_skipSequences()
618 seq->matchLength -= (U32)srcSize; in ZSTD_ldm_skipSequences()
628 srcSize -= seq->matchLength; in ZSTD_ldm_skipSequences()
629 seq->matchLength = 0; in ZSTD_ldm_skipSequences()
[all …]
H A Dzstd_compress_internal.h117 U32 matchLength; member
128 seqLen.matchLength = seq->mlBase + MINMATCH; in ZSTD_getSequenceLength()
134 seqLen.matchLength += 0x10000; in ZSTD_getSequenceLength()
200 U32 matchLength; /* Raw length of match */ member
730 size_t matchLength) in ZSTD_storeSeqOnly() argument
747 assert(matchLength <= ZSTD_BLOCKSIZE_MAX); in ZSTD_storeSeqOnly()
748 assert(matchLength >= MINMATCH); in ZSTD_storeSeqOnly()
771 size_t matchLength) in ZSTD_storeSeq() argument
877 if (match + matchLength != mEnd) return matchLength; in ZSTD_count_2segments()
882 DEBUGLOG(7, "final match length = %zu", matchLength + ZSTD_count(ip+matchLength, iStart, iEnd)); in ZSTD_count_2segments()
[all …]
H A Dzstd_compress.c3143 matchLenSum += seqBuf[i].matchLength; in ZSTD_fastSequenceLengthSum()
3418 outSeqs[nbInSequences].matchLength = 0; in ZSTD_copyBlockSequences()
6461 U32 const matchLength = inSeqs[idx].matchLength; in ZSTD_transferSequences_wBlockDelim() local
6484 ip += matchLength + litLength; in ZSTD_transferSequences_wBlockDelim()
6569 U32 matchLength = currSeq.matchLength; in ZSTD_transferSequences_noDelim() local
6638 ip += matchLength + litLength; in ZSTD_transferSequences_noDelim()
6698 if (inSeqs[spos].matchLength != 0) in blockSize_explicitDelimiter()
7149 U32 const matchLength = inSeqs[seqNb].matchLength; in ZSTD_convertBlockSequences() local
7219 mSum += seqs[i].matchLength; in ZSTD_get1BlockSummary()
7246 totalMatchSize += seqs[n].matchLength; in ZSTD_get1BlockSummary()
[all …]
H A Dzstd_compress_superblock.c140 matchLengthSum += seqLen.matchLength; in ZSTD_seqDecompressedSize()
/linux-6.15/lib/zstd/decompress/
H A Dzstd_decompress_block.c781 size_t matchLength; member
943 sequence.matchLength -= length1; in ZSTD_execSequenceEnd()
992 sequence.matchLength -= length1; in ZSTD_execSequenceEndSplitLitBuffer()
1065 sequence.matchLength -= length1; in ZSTD_execSequence()
1073 assert(sequence.matchLength >= 1); in ZSTD_execSequence()
1092 if (sequence.matchLength > 8) { in ZSTD_execSequence()
1158 sequence.matchLength -= length1; in ZSTD_execSequenceSplitLitBuffer()
1165 assert(sequence.matchLength >= 1); in ZSTD_execSequenceSplitLitBuffer()
1184 if (sequence.matchLength > 8) { in ZSTD_execSequenceSplitLitBuffer()
1254 seq.matchLength = mlDInfo->baseValue; in ZSTD_decodeSequence()
[all …]
/linux-6.15/lib/lz4/
H A Dlz4_compress.c640 size_t matchLength = LZ4_count(ip + MINMATCH, in LZ4_compress_destSize_generic() local
643 if (op + ((matchLength + 240)/255) > oMaxMatch) { in LZ4_compress_destSize_generic()
645 matchLength = (15 - 1) + (oMaxMatch - op) * 255; in LZ4_compress_destSize_generic()
647 ip += MINMATCH + matchLength; in LZ4_compress_destSize_generic()
649 if (matchLength >= ML_MASK) { in LZ4_compress_destSize_generic()
651 matchLength -= ML_MASK; in LZ4_compress_destSize_generic()
652 while (matchLength >= 255) { in LZ4_compress_destSize_generic()
653 matchLength -= 255; in LZ4_compress_destSize_generic()
656 *op++ = (BYTE)matchLength; in LZ4_compress_destSize_generic()
658 *token += (BYTE)(matchLength); in LZ4_compress_destSize_generic()
H A Dlz4hc_compress.c265 int matchLength, in LZ4HC_encodeSequence() argument
303 length = (int)(matchLength - MINMATCH); in LZ4HC_encodeSequence()
331 *ip += matchLength; in LZ4HC_encodeSequence()
/linux-6.15/include/linux/
H A Dzstd_lib.h1289 unsigned int matchLength; /* Match length of the sequence. */ member