Searched refs:litLength (Results 1 – 11 of 11) sorted by relevance
| /linux/lib/zstd/compress/ |
| A D | zstd_ldm.c | 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() 633 sequence.matchLength = remaining - sequence.litLength; in maybeSplitSequence() 647 if (currPos >= currSeq.litLength + currSeq.matchLength) { in ZSTD_ldm_skipRawSeqStoreBytes() 648 currPos -= currSeq.litLength + currSeq.matchLength; in ZSTD_ldm_skipRawSeqStoreBytes() [all …]
|
| A 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() 607 assert(literals + litLength <= litLimit); in ZSTD_storeSeq() 614 if (litLength > 16) { in ZSTD_storeSeq() 620 seqStorePtr->lit += litLength; in ZSTD_storeSeq() 623 if (litLength>0xFFFF) { in ZSTD_storeSeq() [all …]
|
| A D | zstd_opt.c | 249 if (litLength == 0) return 0; in ZSTD_rawLiteralsCost() 258 { U32 price = litLength * optPtr->litSumBasePrice; in ZSTD_rawLiteralsCost() 260 for (u=0; u < litLength; u++) { in ZSTD_rawLiteralsCost() 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() 284 { U32 const llCode = ZSTD_LLcode(litLength); in ZSTD_litLengthPrice() 336 for (u=0; u < litLength; u++) in ZSTD_updateStats() 338 optPtr->litSum += litLength*ZSTD_LITFREQ_ADD; in ZSTD_updateStats() 342 { U32 const llCode = ZSTD_LLcode(litLength); in ZSTD_updateStats() [all …]
|
| A D | zstd_compress.c | 2823 outSeqs[i].litLength = seqStoreSeqs[i].litLength; in ZSTD_copyBlockSequences() 2894 sequences[in+1].litLength += sequences[in].litLength; in ZSTD_mergeBlockDelimiters() 3282 literalsBytes += seq.litLength; in ZSTD_countSeqStoreLiteralsBytes() 5621 U32 const litLength = inSeqs[idx].litLength; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() local 5637 ip += matchLength + litLength; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() 5641 if (inSeqs[idx].litLength) { in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() 5644 ip += inSeqs[idx].litLength; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() 5690 U32 litLength = currSeq.litLength; in ZSTD_copySequencesToSeqStoreNoBlockDelim() local 5699 litLength = 0; in ZSTD_copySequencesToSeqStoreNoBlockDelim() 5715 litLength = startPosInSequence >= litLength ? 0 : litLength - startPosInSequence; in ZSTD_copySequencesToSeqStoreNoBlockDelim() [all …]
|
| A 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()
|
| A 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()
|
| A 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/lib/lz4/ |
| A D | lz4_compress.c | 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() 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/decompress/ |
| A D | zstd_decompress_block.c | 734 size_t litLength; member 866 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceEnd() 913 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceEndSplitLitBuffer() 958 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequence() 992 if (UNLIKELY(sequence.litLength > 16)) { in ZSTD_execSequence() 1051 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceSplitLitBuffer() 1084 if (UNLIKELY(sequence.litLength > 16)) { in ZSTD_execSequenceSplitLitBuffer() 1176 seq.litLength = llDInfo->baseValue; 1296 BYTE const* const oLitEnd = op + seq.litLength; 1446 sequence.litLength -= leftoverLit; [all …]
|
| /linux/lib/zstd/common/ |
| A 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/include/linux/ |
| A D | zstd_lib.h | 1165 unsigned int litLength; /* Literal length of the sequence. */ member
|
Completed in 57 milliseconds