Searched refs:litLength (Results 1 – 10 of 10) sorted by relevance
| /linux-6.15/lib/zstd/compress/ |
| H A D | zstd_ldm.c | 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() 655 sequence.matchLength = remaining - sequence.litLength; in maybeSplitSequence() 669 if (currPos >= currSeq.litLength + currSeq.matchLength) { in ZSTD_ldm_skipRawSeqStoreBytes() 670 currPos -= currSeq.litLength + currSeq.matchLength; in ZSTD_ldm_skipRawSeqStoreBytes() [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() 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 736 if (UNLIKELY(litLength>0xFFFF)) { in ZSTD_storeSeqOnly() 741 seqStorePtr->sequences[0].litLength = (U16)litLength; in ZSTD_storeSeqOnly() 794 if (litLength > 16) { in ZSTD_storeSeq() [all …]
|
| H A D | zstd_opt.c | 271 DEBUGLOG(8, "ZSTD_rawLiteralsCost (%u literals)", litLength); in ZSTD_rawLiteralsCost() 272 if (litLength == 0) return 0; in ZSTD_rawLiteralsCost() 281 { U32 price = optPtr->litSumBasePrice * litLength; in ZSTD_rawLiteralsCost() 285 for (u=0; u < litLength; u++) { in ZSTD_rawLiteralsCost() 298 assert(litLength <= ZSTD_BLOCKSIZE_MAX); in ZSTD_litLengthPrice() 300 return WEIGHT(litLength, optLevel); in ZSTD_litLengthPrice() 307 if (litLength == ZSTD_BLOCKSIZE_MAX) in ZSTD_litLengthPrice() 311 { U32 const llCode = ZSTD_LLcode(litLength); in ZSTD_litLengthPrice() 364 for (u=0; u < litLength; u++) in ZSTD_updateStats() 366 optPtr->litSum += litLength*ZSTD_LITFREQ_ADD; in ZSTD_updateStats() [all …]
|
| H A D | zstd_compress.c | 3367 outSeqs[i].litLength = inSeqs[i].litLength; in ZSTD_copyBlockSequences() 3475 sequences[in+1].litLength += sequences[in].litLength; in ZSTD_mergeBlockDelimiters() 6460 U32 const litLength = inSeqs[idx].litLength; in ZSTD_transferSequences_wBlockDelim() local 6513 if (inSeqs[idx].litLength) { in ZSTD_transferSequences_wBlockDelim() 6568 U32 litLength = currSeq.litLength; in ZSTD_transferSequences_noDelim() local 6577 litLength = 0; in ZSTD_transferSequences_noDelim() 6592 litLength = startPosInSequence >= litLength ? 0 : litLength - startPosInSequence; in ZSTD_transferSequences_noDelim() 7054 dstSeqs[i].litLength = (U16)inSeqs[i].litLength; in convertSequences_noRepcodes() 7085 dstSeqs[n].litLength = (U16)inSeqs[n].litLength; in convertSequences_noRepcodes() 7148 U32 const litLength = inSeqs[seqNb].litLength; in ZSTD_convertBlockSequences() local [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-6.15/lib/lz4/ |
| H A D | lz4_compress.c | 307 (unlikely(op + litLength + in LZ4_compress_generic() 309 (litLength / 255) > olimit))) in LZ4_compress_generic() 312 if (litLength >= RUN_MASK) { in LZ4_compress_generic() 313 int len = (int)litLength - RUN_MASK; in LZ4_compress_generic() 321 *token = (BYTE)(litLength << ML_BITS); in LZ4_compress_generic() 325 op += litLength; in LZ4_compress_generic() 614 if (op + ((litLength + 240) / 255) in LZ4_compress_destSize_generic() 615 + litLength > oMaxLit) { in LZ4_compress_destSize_generic() 620 if (litLength >= RUN_MASK) { in LZ4_compress_destSize_generic() 627 *token = (BYTE)(litLength << ML_BITS); in LZ4_compress_destSize_generic() [all …]
|
| /linux-6.15/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() 961 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceEndSplitLitBuffer() 1007 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequence() 1046 if (UNLIKELY(sequence.litLength > 16)) { in ZSTD_execSequence() 1106 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceSplitLitBuffer() 1139 if (UNLIKELY(sequence.litLength > 16)) { in ZSTD_execSequenceSplitLitBuffer() 1255 seq.litLength = llDInfo->baseValue; in ZSTD_decodeSequence() 1377 BYTE const* const oLitEnd = op + seq.litLength; in ZSTD_assertValidSequence() 1524 sequence.litLength -= leftoverLit; in ZSTD_decompressSequences_bodySplitLitBuffer() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | zstd_lib.h | 1288 unsigned int litLength; /* Literal length of the sequence. */ member
|