Searched refs:matchLength (Results 1 – 6 of 6) sorted by relevance
/Linux-v4.19/lib/zstd/ |
D | zstd_opt.h | 142 …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() 307 …matchLength += ZSTD_count_2segments(ip + matchLength, match + matchLength, iLimit, dictEnd, prefix… in ZSTD_insertBtAndGetAllMatches() [all …]
|
D | compress.c | 575 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 …]
|
D | decompress.c | 863 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 …]
|
D | zstd_internal.h | 175 U16 matchLength; member
|
/Linux-v4.19/lib/lz4/ |
D | lz4_compress.c | 641 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()
|
D | lz4hc_compress.c | 266 int matchLength, in LZ4HC_encodeSequence() argument 304 length = (int)(matchLength - MINMATCH); in LZ4HC_encodeSequence() 332 *ip += matchLength; in LZ4HC_encodeSequence()
|