/linux-6.6.21/lib/zstd/compress/ ! |
D | zstd_ldm.c | 459 seq->litLength = (U32)(split - backwardMatchLength - anchor); in ZSTD_ldm_generateSequences_internal() 572 sequences->seq[prevSize].litLength += (U32)leftoverSize; in ZSTD_ldm_generateSequences() 587 if (srcSize <= seq->litLength) { in ZSTD_ldm_skipSequences() 589 seq->litLength -= (U32)srcSize; in ZSTD_ldm_skipSequences() 592 srcSize -= seq->litLength; in ZSTD_ldm_skipSequences() 593 seq->litLength = 0; in ZSTD_ldm_skipSequences() 600 seq[1].litLength += seq[0].matchLength; in ZSTD_ldm_skipSequences() 625 if (remaining >= sequence.litLength + sequence.matchLength) { in maybeSplitSequence() 630 if (remaining <= sequence.litLength) { in maybeSplitSequence() 632 } else if (remaining < sequence.litLength + sequence.matchLength) { in maybeSplitSequence() [all …]
|
D | zstd_compress_internal.h | 132 U32 litLength; /* Length of literals prior to match */ member 457 MEM_STATIC U32 ZSTD_LLcode(U32 litLength) in ZSTD_LLcode() argument 468 return (litLength > 63) ? ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; in ZSTD_LLcode() 589 size_t litLength, const BYTE* literals, const BYTE* litLimit, in ZSTD_storeSeq() argument 594 BYTE const* const litEnd = literals + litLength; in ZSTD_storeSeq() 600 pos, (U32)litLength, (U32)matchLength, (U32)offBase_minus1); in ZSTD_storeSeq() 606 assert(seqStorePtr->lit + litLength <= seqStorePtr->litStart + seqStorePtr->maxNbLit); in ZSTD_storeSeq() 607 assert(literals + litLength <= litLimit); in ZSTD_storeSeq() 614 if (litLength > 16) { in ZSTD_storeSeq() 615 … ZSTD_wildcopy(seqStorePtr->lit+16, literals+16, (ptrdiff_t)litLength-16, ZSTD_no_overlap); in ZSTD_storeSeq() [all …]
|
D | zstd_opt.c | 245 static U32 ZSTD_rawLiteralsCost(const BYTE* const literals, U32 const litLength, in ZSTD_rawLiteralsCost() argument 249 if (litLength == 0) return 0; in ZSTD_rawLiteralsCost() 252 return (litLength << 3) * BITCOST_MULTIPLIER; /* Uncompressed - 8 bytes per literal. */ in ZSTD_rawLiteralsCost() 255 return (litLength*6) * BITCOST_MULTIPLIER; /* 6 bit per literal - no statistic used */ in ZSTD_rawLiteralsCost() 258 { U32 price = litLength * optPtr->litSumBasePrice; in ZSTD_rawLiteralsCost() 260 for (u=0; u < litLength; u++) { in ZSTD_rawLiteralsCost() 270 static U32 ZSTD_litLengthPrice(U32 const litLength, const optState_t* const optPtr, int optLevel) in ZSTD_litLengthPrice() argument 272 assert(litLength <= ZSTD_BLOCKSIZE_MAX); in ZSTD_litLengthPrice() 274 return WEIGHT(litLength, optLevel); in ZSTD_litLengthPrice() 280 if (litLength == ZSTD_BLOCKSIZE_MAX) in ZSTD_litLengthPrice() [all …]
|
D | zstd_compress.c | 2307 U32 const llv = sequences[u].litLength; in ZSTD_seqToCodes() 2823 outSeqs[i].litLength = seqStoreSeqs[i].litLength; in ZSTD_copyBlockSequences() 2829 outSeqs[i].litLength += 0x10000; in ZSTD_copyBlockSequences() 2838 if (outSeqs[i].litLength != 0) { in ZSTD_copyBlockSequences() 2853 seqStoreSeqs[i].litLength == 0); in ZSTD_copyBlockSequences() 2854 literalsRead += outSeqs[i].litLength; in ZSTD_copyBlockSequences() 2862 outSeqs[i].litLength = (U32)lastLLSize; in ZSTD_copyBlockSequences() 2894 sequences[in+1].litLength += sequences[in].litLength; in ZSTD_mergeBlockDelimiters() 3282 literalsBytes += seq.litLength; in ZSTD_countSeqStoreLiteralsBytes() 3379 U32 const ll0 = (seq->litLength == 0); in ZSTD_seqStore_resolveOffCodes() [all …]
|
D | zstd_compress_sequences.c | 314 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body() 341 (unsigned)sequences[n].litLength, in ZSTD_encodeSequences_body() 352 BIT_addBits(&blockStream, sequences[n].litLength, llBits); in ZSTD_encodeSequences_body()
|
D | zstd_compress_superblock.c | 138 litLengthSum += seqLen.litLength; in ZSTD_seqDecompressedSize() 467 litSize += ZSTD_getSequenceLength(seqStorePtr, sequence).litLength; in ZSTD_compressSubBlock_multi() 542 …ZSTD_updateRep(rep.rep, seq->offBase - 1, ZSTD_getSequenceLength(seqStorePtr, seq).litLength == 0); in ZSTD_compressSubBlock_multi()
|
D | zstd_lazy.c | 1672 { size_t const litLength = (size_t)(start - anchor); in ZSTD_compressBlock_lazy_generic() local 1673 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offcode, matchLength); in ZSTD_compressBlock_lazy_generic() 2014 { size_t const litLength = (size_t)(start - anchor); in ZSTD_compressBlock_lazy_extDict_generic() local 2015 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offcode, matchLength); in ZSTD_compressBlock_lazy_extDict_generic()
|
/linux-6.6.21/lib/lz4/ ! |
D | lz4_compress.c | 302 unsigned const int litLength = (unsigned int)(ip - anchor); in LZ4_compress_generic() local 308 (unlikely(op + litLength + in LZ4_compress_generic() 310 (litLength / 255) > olimit))) in LZ4_compress_generic() 313 if (litLength >= RUN_MASK) { in LZ4_compress_generic() 314 int len = (int)litLength - RUN_MASK; in LZ4_compress_generic() 322 *token = (BYTE)(litLength << ML_BITS); in LZ4_compress_generic() 325 LZ4_wildCopy(op, anchor, op + litLength); in LZ4_compress_generic() 326 op += litLength; in LZ4_compress_generic() 612 unsigned int litLength = (unsigned int)(ip - anchor); in LZ4_compress_destSize_generic() local 615 if (op + ((litLength + 240) / 255) in LZ4_compress_destSize_generic() [all …]
|
/linux-6.6.21/lib/zstd/decompress/ ! |
D | zstd_decompress_block.c | 734 size_t litLength; member 866 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceEnd() 867 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequenceEnd() 868 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequenceEnd() 874 …RETURN_ERROR_IF(sequence.litLength > (size_t)(litLimit - *litPtr), corruption_detected, "try to re… in ZSTD_execSequenceEnd() 879 ZSTD_safecopy(op, oend_w, *litPtr, sequence.litLength, ZSTD_no_overlap); in ZSTD_execSequenceEnd() 913 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceEndSplitLitBuffer() 914 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequenceEndSplitLitBuffer() 915 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequenceEndSplitLitBuffer() 921 …RETURN_ERROR_IF(sequence.litLength > (size_t)(litLimit - *litPtr), corruption_detected, "try to re… in ZSTD_execSequenceEndSplitLitBuffer() [all …]
|
/linux-6.6.21/lib/zstd/common/ ! |
D | zstd_internal.h | 278 U16 litLength; member 309 U32 litLength; member 320 seqLen.litLength = seq->litLength; in ZSTD_getSequenceLength() 324 seqLen.litLength += 0xFFFF; in ZSTD_getSequenceLength()
|
/linux-6.6.21/include/linux/ ! |
D | zstd_lib.h | 1165 unsigned int litLength; /* Literal length of the sequence. */ member
|