Home
last modified time | relevance | path

Searched refs:litLength (Results 1 – 11 of 11) sorted by relevance

/linux/lib/zstd/compress/
A Dzstd_ldm.c550 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()
596 sequence.matchLength = remaining - sequence.litLength; in maybeSplitSequence()
610 if (currPos >= currSeq.litLength + currSeq.matchLength) { in ZSTD_ldm_skipRawSeqStoreBytes()
611 currPos -= currSeq.litLength + currSeq.matchLength; in ZSTD_ldm_skipRawSeqStoreBytes()
[all …]
A Dzstd_compress_internal.h85 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()
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()
534 seqStorePtr->lit += litLength; in ZSTD_storeSeq()
537 if (litLength>0xFFFF) { in ZSTD_storeSeq()
[all …]
A Dzstd_opt.c231 if (litLength == 0) return 0; in ZSTD_rawLiteralsCost()
240 { U32 price = litLength * optPtr->litSumBasePrice; in ZSTD_rawLiteralsCost()
242 for (u=0; u < litLength; u++) { in ZSTD_rawLiteralsCost()
257 { U32 const llCode = ZSTD_LLcode(litLength); in ZSTD_litLengthPrice()
301 U32 litLength, const BYTE* literals, in ZSTD_updateStats() argument
307 for (u=0; u < litLength; u++) in ZSTD_updateStats()
309 optPtr->litSum += litLength*ZSTD_LITFREQ_ADD; in ZSTD_updateStats()
313 { U32 const llCode = ZSTD_LLcode(litLength); in ZSTD_updateStats()
799 if (currPos >= currSeq.litLength + currSeq.matchLength) { in ZSTD_optLdm_skipRawSeqStoreBytes()
800 currPos -= currSeq.litLength + currSeq.matchLength; in ZSTD_optLdm_skipRawSeqStoreBytes()
[all …]
A Dzstd_compress.c2487 outSeqs[i].litLength = seqStoreSeqs[i].litLength; 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()
4503 ll0 = litLength == 0; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4522 if (inSeqs[idx].litLength) { in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4525 ip += inSeqs[idx].litLength; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4556 U32 litLength; in ZSTD_copySequencesToSeqStoreNoBlockDelim() local
4573 litLength = currSeq.litLength; in ZSTD_copySequencesToSeqStoreNoBlockDelim()
4581 litLength = 0; in ZSTD_copySequencesToSeqStoreNoBlockDelim()
[all …]
A Dzstd_compress_sequences.c311 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()
A Dzstd_compress_superblock.c418 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()
A Dzstd_lazy.c1077 { 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/lib/lz4/
A Dlz4_compress.c308 (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()
326 op += litLength; in LZ4_compress_generic()
615 if (op + ((litLength + 240) / 255) in LZ4_compress_destSize_generic()
616 + litLength > oMaxLit) { in LZ4_compress_destSize_generic()
621 if (litLength >= RUN_MASK) { in LZ4_compress_destSize_generic()
628 *token = (BYTE)(litLength << ML_BITS); in LZ4_compress_destSize_generic()
[all …]
/linux/lib/zstd/common/
A Dzstd_internal.h335 U16 litLength; member
359 U32 litLength; member
370 seqLen.litLength = seq->litLength; in ZSTD_getSequenceLength()
374 seqLen.litLength += 0xFFFF; in ZSTD_getSequenceLength()
/linux/lib/zstd/decompress/
A Dzstd_decompress_block.c658 size_t litLength; member
770 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceEnd()
772 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequenceEnd()
813 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequence()
817 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequence()
847 if (UNLIKELY(sequence.litLength > 16)) { in ZSTD_execSequence()
1007 seq.litLength = llBase; in ZSTD_decodeSequence()
1018 size_t const pos = seqState->pos + seq.litLength; in ZSTD_decodeSequence()
1078 size_t const sequenceSize = seq.litLength + seq.matchLength; in ZSTD_assertValidSequence()
1079 BYTE const* const oLitEnd = op + seq.litLength; in ZSTD_assertValidSequence()
[all …]
/linux/include/linux/
A Dzstd_lib.h1128 unsigned int litLength; /* Literal length of the sequence. */ member

Completed in 59 milliseconds