| /linux/lib/zstd/compress/ |
| H A D | zstd_ldm.c | 481 seq->litLength = (U32)(split - backwardMatchLength - anchor); in ZSTD_ldm_generateSequences_internal() 594 sequences->seq[prevSize].litLength += (U32)leftoverSize; in ZSTD_ldm_generateSequences() 609 if (srcSize <= seq->litLength) { in ZSTD_ldm_skipSequences() 611 seq->litLength -= (U32)srcSize; in ZSTD_ldm_skipSequences() 614 srcSize -= seq->litLength; in ZSTD_ldm_skipSequences() 615 seq->litLength = 0; in ZSTD_ldm_skipSequences() 622 seq[1].litLength += seq[0].matchLength; in ZSTD_ldm_skipSequences() 647 if (remaining >= sequence.litLength + sequence.matchLength) { in maybeSplitSequence() 652 if (remaining <= sequence.litLength) { in maybeSplitSequence() 654 } else if (remaining < sequence.litLength + sequence.matchLength) { in maybeSplitSequence() [all …]
|
| H A D | zstd_compress_internal.h | 85 U16 litLength; member 116 U32 litLength; member 127 seqLen.litLength = seq->litLength; in ZSTD_getSequenceLength() 131 seqLen.litLength += 0x10000; in ZSTD_getSequenceLength() 199 U32 litLength; /* Length of literals prior to match */ member 576 MEM_STATIC U32 ZSTD_LLcode(U32 litLength) in ZSTD_LLcode() argument 587 return (litLength > 63) ? ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; in ZSTD_LLcode() 728 size_t litLength, in ZSTD_storeSeqOnly() argument 735 assert(litLength <= ZSTD_BLOCKSIZE_MAX); in ZSTD_storeSeqOnly() 736 if (UNLIKELY(litLength>0xFFFF)) { in ZSTD_storeSeqOnly() [all …]
|
| H A D | zstd_opt.c | 267 static U32 ZSTD_rawLiteralsCost(const BYTE* const literals, U32 const litLength, in ZSTD_rawLiteralsCost() argument 271 DEBUGLOG(8, "ZSTD_rawLiteralsCost (%u literals)", litLength); in ZSTD_rawLiteralsCost() 272 if (litLength == 0) return 0; in ZSTD_rawLiteralsCost() 275 return (litLength << 3) * BITCOST_MULTIPLIER; /* Uncompressed - 8 bytes per literal. */ in ZSTD_rawLiteralsCost() 278 return (litLength*6) * BITCOST_MULTIPLIER; /* 6 bit per literal - no statistic used */ in ZSTD_rawLiteralsCost() 281 { U32 price = optPtr->litSumBasePrice * litLength; in ZSTD_rawLiteralsCost() 285 for (u=0; u < litLength; u++) { in ZSTD_rawLiteralsCost() 296 static U32 ZSTD_litLengthPrice(U32 const litLength, const optState_t* const optPtr, int optLevel) in ZSTD_litLengthPrice() argument 298 assert(litLength <= ZSTD_BLOCKSIZE_MAX); in ZSTD_litLengthPrice() 300 return WEIGHT(litLength, optLevel); in ZSTD_litLengthPrice() [all …]
|
| H A D | zstd_compress.c | 2618 U32 const llv = sequences[u].litLength; in ZSTD_seqToCodes() 3142 litLenSum += seqBuf[i].litLength; in ZSTD_fastSequenceLengthSum() 3367 outSeqs[i].litLength = inSeqs[i].litLength; in ZSTD_copyBlockSequences() 3377 outSeqs[i].litLength += 0x10000; in ZSTD_copyBlockSequences() 3388 if (outSeqs[i].litLength != 0) { in ZSTD_copyBlockSequences() 3406 inSeqs[i].litLength == 0); in ZSTD_copyBlockSequences() 3408 nbOutLiterals += outSeqs[i].litLength; in ZSTD_copyBlockSequences() 3417 outSeqs[nbInSequences].litLength = (U32)lastLLSize; in ZSTD_copyBlockSequences() 3475 sequences[in+1].litLength += sequences[in].litLength; in ZSTD_mergeBlockDelimiters() 3890 literalsBytes += seq.litLength; in ZSTD_countSeqStoreLiteralsBytes() [all …]
|
| H A D | zstd_compress_superblock.c | 139 litLengthSum += seqLen.litLength; in ZSTD_seqDecompressedSize() 435 total += ZSTD_getSequenceLength(seqStore, sp+n).litLength; in countLiterals() 454 budget += sp[0].litLength * avgLitCost + avgSeqCost; in sizeBlockSequences() 456 inSize = sp[0].litLength + (sp[0].mlBase+MINMATCH); in sizeBlockSequences() 460 size_t currentCost = sp[n].litLength * avgLitCost + avgSeqCost; in sizeBlockSequences() 462 inSize += sp[n].litLength + (sp[n].mlBase+MINMATCH); in sizeBlockSequences() 655 … ZSTD_updateRep(rep.rep, seq->offBase, ZSTD_getSequenceLength(seqStorePtr, seq).litLength == 0); in ZSTD_compressSubBlock_multi()
|
| H A D | zstd_compress_sequences.c | 315 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body() 342 (unsigned)sequences[n].litLength, in ZSTD_encodeSequences_body() 353 BIT_addBits(&blockStream, sequences[n].litLength, llBits); in ZSTD_encodeSequences_body()
|
| H A D | zstd_lazy.c | 1724 { size_t const litLength = (size_t)(start - anchor); in ZSTD_compressBlock_lazy_generic() local 1725 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offBase, matchLength); in ZSTD_compressBlock_lazy_generic() 2098 { size_t const litLength = (size_t)(start - anchor); in ZSTD_compressBlock_lazy_extDict_generic() local 2099 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offBase, matchLength); in ZSTD_compressBlock_lazy_extDict_generic()
|
| /linux/lib/zstd/decompress/ |
| H A D | zstd_decompress_block.c | 780 size_t litLength; member 913 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceEnd() 914 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequenceEnd() 915 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequenceEnd() 921 …RETURN_ERROR_IF(sequence.litLength > (size_t)(litLimit - *litPtr), corruption_detected, "try to re… in ZSTD_execSequenceEnd() 926 ZSTD_safecopy(op, oend_w, *litPtr, sequence.litLength, ZSTD_no_overlap); in ZSTD_execSequenceEnd() 961 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceEndSplitLitBuffer() 962 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequenceEndSplitLitBuffer() 963 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequenceEndSplitLitBuffer() 969 …RETURN_ERROR_IF(sequence.litLength > (size_t)(litLimit - *litPtr), corruption_detected, "try to re… in ZSTD_execSequenceEndSplitLitBuffer() [all …]
|
| /linux/include/linux/ |
| H A D | zstd_lib.h | 1288 unsigned int litLength; /* Literal length of the sequence. */ member
|