Home
last modified time | relevance | path

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

/Linux-v4.19/lib/zstd/
Dzstd_opt.h142 …e_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 offset, U32 matchLength, const int ultr… in ZSTD_getPrice() argument
149 …return ZSTD_getLiteralPrice(seqStorePtr, litLength, literals) + ZSTD_highbit32((U32)matchLength + … in ZSTD_getPrice()
158 …const BYTE mlCode = (matchLength > 127) ? (BYTE)ZSTD_highbit32(matchLength) + ML_deltaCode : ML_Co… in ZSTD_getPrice()
165 …atePrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 offset, U32 matchLength) in ZSTD_updatePrice() argument
192 …const BYTE mlCode = (matchLength > 127) ? (BYTE)ZSTD_highbit32(matchLength) + ML_deltaCode : ML_Co… in ZSTD_updatePrice()
297 …size_t matchLength = MIN(commonLengthSmaller, commonLengthLarger); /* guaranteed minimum nb of com… in ZSTD_insertBtAndGetAllMatches() local
300 if ((!extDict) || (matchIndex + matchLength >= dictLimit)) { in ZSTD_insertBtAndGetAllMatches()
302 if (match[matchLength] == ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
303 matchLength += ZSTD_count(ip + matchLength + 1, match + matchLength + 1, iLimit) + 1; in ZSTD_insertBtAndGetAllMatches()
307matchLength += ZSTD_count_2segments(ip + matchLength, match + matchLength, iLimit, dictEnd, prefix… in ZSTD_insertBtAndGetAllMatches()
[all …]
Dcompress.c575 U32 const mlv = sequences[u].matchLength; in ZSTD_seqToCodes()
765 BIT_addBits(&blockStream, sequences[nbSeq - 1].matchLength, ML_bits[mlCodeTable[nbSeq - 1]]); in ZSTD_compressSequences_internal()
801 BIT_addBits(&blockStream, sequences[n].matchLength, mlBits); in ZSTD_compressSequences_internal()
882 seqStorePtr->sequences[0].matchLength = (U16)matchCode; in ZSTD_storeSeq()
943 size_t const matchLength = ZSTD_count(ip, match, vEnd); in ZSTD_count_2segments() local
944 if (match + matchLength != mEnd) in ZSTD_count_2segments()
945 return matchLength; in ZSTD_count_2segments()
946 return matchLength + ZSTD_count(ip + matchLength, iStart, iEnd); in ZSTD_count_2segments()
1590 …size_t matchLength = MIN(commonLengthSmaller, commonLengthLarger); /* guaranteed minimum nb of com… in ZSTD_insertBt1() local
1592 if ((!extDict) || (matchIndex + matchLength >= dictLimit)) { in ZSTD_insertBt1()
[all …]
Ddecompress.c863 size_t matchLength; member
884 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequenceLast7()
913 if (match + sequence.matchLength <= dictEnd) { in ZSTD_execSequenceLast7()
914 memmove(oLitEnd, match, sequence.matchLength); in ZSTD_execSequenceLast7()
922 sequence.matchLength -= length1; in ZSTD_execSequenceLast7()
986 …seq.matchLength = ML_base[mlCode] + ((mlCode > 31) ? BIT_readBitsFast(&seqState->DStream, mlBits) … in ZSTD_decodeSequence()
1011 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequence()
1039 if (match + sequence.matchLength <= dictEnd) { in ZSTD_execSequence()
1040 memmove(oLitEnd, match, sequence.matchLength); in ZSTD_execSequence()
1048 sequence.matchLength -= length1; in ZSTD_execSequence()
[all …]
Dzstd_internal.h175 U16 matchLength; member
/Linux-v4.19/lib/lz4/
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()
Dlz4hc_compress.c266 int matchLength, in LZ4HC_encodeSequence() argument
304 length = (int)(matchLength - MINMATCH); in LZ4HC_encodeSequence()
332 *ip += matchLength; in LZ4HC_encodeSequence()