Home
last modified time | relevance | path

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

/linux-6.3-rc2/lib/zstd/compress/
A Dzstd_opt.c306 assert(matchLength >= MINMATCH); in ZSTD_getMatchPrice()
487 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iend); in ZSTD_insertBt1()
490matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_insertBt1()
496 bestLength = matchLength; in ZSTD_insertBt1()
505 if (match[matchLength] < ip[matchLength]) { /* necessarily within buffer */ in ZSTD_insertBt1()
699 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iLimit); in ZSTD_insertBtAndGetAllMatches()
703matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dictEnd, prefixStar… in ZSTD_insertBtAndGetAllMatches()
724 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
751matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dmsEnd, prefixStart… in ZSTD_insertBtAndGetAllMatches()
771 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
[all …]
A Dzstd_lazy.c113 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iend); in ZSTD_insertDUBT1()
116matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_insertDUBT1()
128 if (match[matchLength] < ip[matchLength]) { /* necessarily within buffer */ in ZSTD_insertDUBT1()
192matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_DUBT_findBetterDictMatch()
208 if (match[matchLength] < ip[matchLength]) { in ZSTD_DUBT_findBetterDictMatch()
319 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iend); in ZSTD_DUBT_findBestMatch()
322matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_DUBT_findBestMatch()
342 if (match[matchLength] < ip[matchLength]) { in ZSTD_DUBT_findBestMatch()
1539 size_t matchLength=0; in ZSTD_compressBlock_lazy_generic() local
1571 if (matchLength < 4) { in ZSTD_compressBlock_lazy_generic()
[all …]
A Dzstd_ldm.c200 size_t matchLength = 0; in ZSTD_ldm_countBackwardsMatch() local
204 matchLength++; in ZSTD_ldm_countBackwardsMatch()
206 return matchLength; in ZSTD_ldm_countBackwardsMatch()
222 return matchLength; in ZSTD_ldm_countBackwardsMatch_2segments()
225matchLength += ZSTD_ldm_countBackwardsMatch(pIn - matchLength, pAnchor, pExtDictEnd, pExtDictStart… in ZSTD_ldm_countBackwardsMatch_2segments()
227 return matchLength; in ZSTD_ldm_countBackwardsMatch_2segments()
594 if (srcSize < seq->matchLength) { in ZSTD_ldm_skipSequences()
596 seq->matchLength -= (U32)srcSize; in ZSTD_ldm_skipSequences()
606 srcSize -= seq->matchLength; in ZSTD_ldm_skipSequences()
607 seq->matchLength = 0; in ZSTD_ldm_skipSequences()
[all …]
A Dzstd_compress_internal.h133 U32 matchLength; /* Raw length of match */ member
591 size_t matchLength) in ZSTD_storeSeq() argument
600 pos, (U32)litLength, (U32)matchLength, (U32)offBase_minus1); in ZSTD_storeSeq()
634 assert(matchLength >= MINMATCH); in ZSTD_storeSeq()
635 { size_t const mlBase = matchLength - MINMATCH; in ZSTD_storeSeq()
771 size_t const matchLength = ZSTD_count(ip, match, vEnd); in ZSTD_count_2segments() local
772 if (match + matchLength != mEnd) return matchLength; in ZSTD_count_2segments()
773 DEBUGLOG(7, "ZSTD_count_2segments: found a 2-parts match (current length==%zu)", matchLength); in ZSTD_count_2segments()
776 DEBUGLOG(7, "next byte : ip==%02X, istart==%02X", ip[matchLength], *iStart); in ZSTD_count_2segments()
777 DEBUGLOG(7, "final match length = %zu", matchLength + ZSTD_count(ip+matchLength, iStart, iEnd)); in ZSTD_count_2segments()
[all …]
A Dzstd_compress.c2824 outSeqs[i].matchLength = seqStoreSeqs[i].mlBase + MINMATCH; in ZSTD_copyBlockSequences()
2831 outSeqs[i].matchLength += 0x10000; in ZSTD_copyBlockSequences()
5563 ZSTD_validateSequence(U32 offCode, U32 matchLength, in ZSTD_validateSequence() argument
5621 U32 const matchLength = inSeqs[idx].matchLength; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() local
5627 seqPos->posInSrc += litLength + matchLength; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
5635 ip += matchLength + litLength; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
5689 U32 matchLength = currSeq.matchLength; in ZSTD_copySequencesToSeqStoreNoBlockDelim() local
5698 matchLength -= startPosInSequence; in ZSTD_copySequencesToSeqStoreNoBlockDelim()
5724 matchLength = firstHalfMatchLength; in ZSTD_copySequencesToSeqStoreNoBlockDelim()
5750 seqPos->posInSrc += litLength + matchLength; in ZSTD_copySequencesToSeqStoreNoBlockDelim()
[all …]
A Dzstd_compress_superblock.c139 matchLengthSum += seqLen.matchLength; in ZSTD_seqDecompressedSize()
/linux-6.3-rc2/lib/zstd/decompress/
A Dzstd_decompress_block.c735 size_t matchLength; member
896 sequence.matchLength -= length1; in ZSTD_execSequenceEnd()
944 sequence.matchLength -= length1; in ZSTD_execSequenceEndSplitLitBuffer()
1011 sequence.matchLength -= length1; in ZSTD_execSequence()
1019 assert(sequence.matchLength >= 1); in ZSTD_execSequence()
1038 if (sequence.matchLength > 8) { in ZSTD_execSequence()
1103 sequence.matchLength -= length1; in ZSTD_execSequenceSplitLitBuffer()
1110 assert(sequence.matchLength >= 1); in ZSTD_execSequenceSplitLitBuffer()
1129 if (sequence.matchLength > 8) { in ZSTD_execSequenceSplitLitBuffer()
1175 seq.matchLength = mlDInfo->baseValue;
[all …]
/linux-6.3-rc2/lib/lz4/
A Dlz4_compress.c641 size_t matchLength = LZ4_count(ip + MINMATCH, in LZ4_compress_destSize_generic() local
644 if (op + ((matchLength + 240)/255) > oMaxMatch) { in LZ4_compress_destSize_generic()
646 matchLength = (15 - 1) + (oMaxMatch - op) * 255; in LZ4_compress_destSize_generic()
648 ip += MINMATCH + matchLength; in LZ4_compress_destSize_generic()
650 if (matchLength >= ML_MASK) { in LZ4_compress_destSize_generic()
652 matchLength -= ML_MASK; in LZ4_compress_destSize_generic()
653 while (matchLength >= 255) { in LZ4_compress_destSize_generic()
654 matchLength -= 255; in LZ4_compress_destSize_generic()
657 *op++ = (BYTE)matchLength; in LZ4_compress_destSize_generic()
659 *token += (BYTE)(matchLength); in LZ4_compress_destSize_generic()
A Dlz4hc_compress.c266 int matchLength, in LZ4HC_encodeSequence() argument
304 length = (int)(matchLength - MINMATCH); in LZ4HC_encodeSequence()
332 *ip += matchLength; in LZ4HC_encodeSequence()
/linux-6.3-rc2/lib/zstd/common/
A Dzstd_internal.h310 U32 matchLength; member
321 seqLen.matchLength = seq->mlBase + MINMATCH; in ZSTD_getSequenceLength()
327 seqLen.matchLength += 0xFFFF; in ZSTD_getSequenceLength()
/linux-6.3-rc2/include/linux/
A Dzstd_lib.h1166 unsigned int matchLength; /* Match length of the sequence. */ member

Completed in 50 milliseconds