/linux-6.1.9/lib/zstd/compress/ |
D | zstd_ldm.c | 439 seq->litLength = (U32)(split - backwardMatchLength - anchor); in ZSTD_ldm_generateSequences_internal() 537 sequences->seq[prevSize].litLength += (U32)leftoverSize; in ZSTD_ldm_generateSequences() 550 if (srcSize <= seq->litLength) { in ZSTD_ldm_skipSequences() 552 seq->litLength -= (U32)srcSize; in ZSTD_ldm_skipSequences() 555 srcSize -= seq->litLength; in ZSTD_ldm_skipSequences() 556 seq->litLength = 0; in ZSTD_ldm_skipSequences() 563 seq[1].litLength += seq[0].matchLength; in ZSTD_ldm_skipSequences() 588 if (remaining >= sequence.litLength + sequence.matchLength) { in maybeSplitSequence() 593 if (remaining <= sequence.litLength) { in maybeSplitSequence() 595 } else if (remaining < sequence.litLength + sequence.matchLength) { in maybeSplitSequence() [all …]
|
D | zstd_compress_internal.h | 85 U32 litLength; /* Length of literals prior to match */ member 364 MEM_STATIC U32 ZSTD_LLcode(U32 litLength) in ZSTD_LLcode() argument 375 return (litLength > 63) ? ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; in ZSTD_LLcode() 505 void ZSTD_storeSeq(seqStore_t* seqStorePtr, size_t litLength, const BYTE* literals, const BYTE* lit… in ZSTD_storeSeq() argument 508 BYTE const* const litEnd = literals + litLength; in ZSTD_storeSeq() 514 pos, (U32)litLength, (U32)mlBase+MINMATCH, (U32)offCode); in ZSTD_storeSeq() 520 assert(seqStorePtr->lit + litLength <= seqStorePtr->litStart + seqStorePtr->maxNbLit); in ZSTD_storeSeq() 521 assert(literals + litLength <= litLimit); in ZSTD_storeSeq() 528 if (litLength > 16) { in ZSTD_storeSeq() 529 … ZSTD_wildcopy(seqStorePtr->lit+16, literals+16, (ptrdiff_t)litLength-16, ZSTD_no_overlap); in ZSTD_storeSeq() [all …]
|
D | zstd_opt.c | 227 static U32 ZSTD_rawLiteralsCost(const BYTE* const literals, U32 const litLength, in ZSTD_rawLiteralsCost() argument 231 if (litLength == 0) return 0; in ZSTD_rawLiteralsCost() 234 return (litLength << 3) * BITCOST_MULTIPLIER; /* Uncompressed - 8 bytes per literal. */ in ZSTD_rawLiteralsCost() 237 return (litLength*6) * BITCOST_MULTIPLIER; /* 6 bit per literal - no statistic used */ in ZSTD_rawLiteralsCost() 240 { U32 price = litLength * optPtr->litSumBasePrice; in ZSTD_rawLiteralsCost() 242 for (u=0; u < litLength; u++) { in ZSTD_rawLiteralsCost() 252 static U32 ZSTD_litLengthPrice(U32 const litLength, const optState_t* const optPtr, int optLevel) in ZSTD_litLengthPrice() argument 254 if (optPtr->priceType == zop_predef) return WEIGHT(litLength, optLevel); in ZSTD_litLengthPrice() 257 { U32 const llCode = ZSTD_LLcode(litLength); in ZSTD_litLengthPrice() 301 U32 litLength, const BYTE* literals, in ZSTD_updateStats() argument [all …]
|
D | zstd_compress.c | 2074 U32 const llv = sequences[u].litLength; in ZSTD_seqToCodes() 2487 outSeqs[i].litLength = seqStoreSeqs[i].litLength; in ZSTD_copyBlockSequences() 2493 outSeqs[i].litLength += 0x10000; in ZSTD_copyBlockSequences() 2502 if (outSeqs[i].litLength != 0) { in ZSTD_copyBlockSequences() 2517 seqStoreSeqs[i].litLength == 0); in ZSTD_copyBlockSequences() 2518 literalsRead += outSeqs[i].litLength; in ZSTD_copyBlockSequences() 2526 outSeqs[i].litLength = (U32)lastLLSize; in ZSTD_copyBlockSequences() 2558 sequences[in+1].litLength += sequences[in].litLength; in ZSTD_mergeBlockDelimiters() 4487 U32 litLength; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() local 4501 litLength = inSeqs[idx].litLength; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() [all …]
|
D | zstd_compress_sequences.c | 311 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body() 338 (unsigned)sequences[n].litLength, in ZSTD_encodeSequences_body() 349 BIT_addBits(&blockStream, sequences[n].litLength, llBits); in ZSTD_encodeSequences_body()
|
D | zstd_compress_superblock.c | 418 litLengthSum += seqLen.litLength; in ZSTD_seqDecompressedSize() 746 litSize += ZSTD_getSequenceLength(seqStorePtr, sequence).litLength; in ZSTD_compressSubBlock_multi() 821 … ZSTD_updateRep(rep.rep, seq->offset - 1, ZSTD_getSequenceLength(seqStorePtr, seq).litLength == 0); in ZSTD_compressSubBlock_multi()
|
D | zstd_lazy.c | 1077 { size_t const litLength = start - anchor; in ZSTD_compressBlock_lazy_generic() local 1078 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offset, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_generic() 1350 { size_t const litLength = start - anchor; in ZSTD_compressBlock_lazy_extDict_generic() local 1351 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offset, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_extDict_generic()
|
/linux-6.1.9/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.1.9/lib/zstd/common/ |
D | zstd_internal.h | 335 U16 litLength; member 359 U32 litLength; member 370 seqLen.litLength = seq->litLength; in ZSTD_getSequenceLength() 374 seqLen.litLength += 0xFFFF; in ZSTD_getSequenceLength()
|
/linux-6.1.9/lib/zstd/decompress/ |
D | zstd_decompress_block.c | 658 size_t litLength; member 770 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceEnd() 771 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequenceEnd() 772 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequenceEnd() 778 …RETURN_ERROR_IF(sequence.litLength > (size_t)(litLimit - *litPtr), corruption_detected, "try to re… in ZSTD_execSequenceEnd() 783 ZSTD_safecopy(op, oend_w, *litPtr, sequence.litLength, ZSTD_no_overlap); in ZSTD_execSequenceEnd() 813 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequence() 814 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequence() 817 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequence() 847 if (UNLIKELY(sequence.litLength > 16)) { in ZSTD_execSequence() [all …]
|
/linux-6.1.9/include/linux/ |
D | zstd_lib.h | 1128 unsigned int litLength; /* Literal length of the sequence. */ member
|