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

/linux-master/lib/zstd/common/
H A Dzstd_internal.h278 U16 litLength; member in struct:seqDef_s
282 /* Controls whether seqStore has a single "long" litLength or matchLength. See seqStore_t. */
300 /* longLengthPos and longLengthType to allow us to represent either a single litLength or matchLength
302 * the existing value of the litLength or matchLength by 0x10000.
309 U32 litLength; member in struct:__anon162
320 seqLen.litLength = seq->litLength;
324 seqLen.litLength += 0xFFFF;
/linux-master/lib/zstd/compress/
H A Dzstd_ldm.c459 seq->litLength = (U32)(split - backwardMatchLength - anchor);
572 sequences->seq[prevSize].litLength += (U32)leftoverSize;
587 if (srcSize <= seq->litLength) {
589 seq->litLength -= (U32)srcSize;
592 srcSize -= seq->litLength;
593 seq->litLength = 0;
600 seq[1].litLength += seq[0].matchLength;
625 if (remaining >= sequence.litLength + sequence.matchLength) {
630 if (remaining <= sequence.litLength) {
632 } else if (remaining < sequence.litLength
[all...]
H A Dzstd_compress_internal.h132 U32 litLength; /* Length of literals prior to match */ member in struct:__anon190
140 stopped. posInSequence <= seq[pos].litLength + seq[pos].matchLength */
160 unsigned* litLengthFreq; /* table of litLength statistics, of size (MaxLL+1) */
167 U32 litLengthSum; /* nb of litLength codes */
457 MEM_STATIC U32 ZSTD_LLcode(U32 litLength) argument
468 return (litLength > 63) ? ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength];
589 size_t litLength, const BYTE* literals, const BYTE* litLimit,
594 BYTE const* const litEnd = literals + litLength;
588 ZSTD_storeSeq(seqStore_t* seqStorePtr, size_t litLength, const BYTE* literals, const BYTE* litLimit, U32 offBase_minus1, size_t matchLength) argument
[all...]
H A Dzstd_opt.c245 static U32 ZSTD_rawLiteralsCost(const BYTE* const literals, U32 const litLength, argument
249 if (litLength == 0) return 0;
252 return (litLength << 3) * BITCOST_MULTIPLIER; /* Uncompressed - 8 bytes per literal. */
255 return (litLength*6) * BITCOST_MULTIPLIER; /* 6 bit per literal - no statistic used */
258 { U32 price = litLength * optPtr->litSumBasePrice;
260 for (u=0; u < litLength; u++) {
270 static U32 ZSTD_litLengthPrice(U32 const litLength, const optState_t* const optPtr, int optLevel) argument
272 assert(litLength <= ZSTD_BLOCKSIZE_MAX);
274 return WEIGHT(litLength, optLevel);
275 /* We can't compute the litLength pric
329 ZSTD_updateStats(optState_t* const optPtr, U32 litLength, const BYTE* literals, U32 offsetCode, U32 matchLength) argument
[all...]
H A Dzstd_compress.c2307 U32 const llv = sequences[u].litLength;
2823 outSeqs[i].litLength = seqStoreSeqs[i].litLength;
2829 outSeqs[i].litLength += 0x10000;
2838 if (outSeqs[i].litLength != 0) {
2853 seqStoreSeqs[i].litLength == 0);
2854 literalsRead += outSeqs[i].litLength;
2862 outSeqs[i].litLength = (U32)lastLLSize;
2894 sequences[in+1].litLength += sequences[in].litLength;
5619 U32 const litLength = inSeqs[idx].litLength; local
5688 U32 litLength = currSeq.litLength; local
[all...]
H A Dzstd_compress_sequences.c314 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]);
341 (unsigned)sequences[n].litLength,
352 BIT_addBits(&blockStream, sequences[n].litLength, llBits);
H A Dzstd_compress_superblock.c138 litLengthSum += seqLen.litLength;
467 litSize += ZSTD_getSequenceLength(seqStorePtr, sequence).litLength;
542 ZSTD_updateRep(rep.rep, seq->offBase - 1, ZSTD_getSequenceLength(seqStorePtr, seq).litLength == 0);
H A Dzstd_lazy.c1672 { size_t const litLength = (size_t)(start - anchor); local
1673 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offcode, matchLength);
2014 { size_t const litLength = (size_t)(start - anchor); local
2015 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offcode, matchLength);
/linux-master/lib/lz4/
H A Dlz4_compress.c302 unsigned const int litLength = (unsigned int)(ip - anchor); local
308 (unlikely(op + litLength +
310 (litLength / 255) > olimit)))
313 if (litLength >= RUN_MASK) {
314 int len = (int)litLength - RUN_MASK;
322 *token = (BYTE)(litLength << ML_BITS);
325 LZ4_wildCopy(op, anchor, op + litLength);
326 op += litLength;
612 unsigned int litLength = (unsigned int)(ip - anchor); local
615 if (op + ((litLength
[all...]
/linux-master/lib/zstd/decompress/
H A Dzstd_decompress_block.c734 size_t litLength; member in struct:__anon223
866 BYTE* const oLitEnd = op + sequence.litLength;
867 size_t const sequenceLength = sequence.litLength + sequence.matchLength;
868 const BYTE* const iLitEnd = *litPtr + sequence.litLength;
874 RETURN_ERROR_IF(sequence.litLength > (size_t)(litLimit - *litPtr), corruption_detected, "try to read beyond literal buffer");
879 ZSTD_safecopy(op, oend_w, *litPtr, sequence.litLength, ZSTD_no_overlap);
913 BYTE* const oLitEnd = op + sequence.litLength;
914 size_t const sequenceLength = sequence.litLength + sequence.matchLength;
915 const BYTE* const iLitEnd = *litPtr + sequence.litLength;
921 RETURN_ERROR_IF(sequence.litLength > (size_
[all...]
/linux-master/include/linux/
H A Dzstd_lib.h1162 * literals in the block of litLength size.
1165 unsigned int litLength; /* Literal length of the sequence. */ member in struct:__anon94
1168 /* Note: Users of this API may provide a sequence with matchLength == litLength == offset == 0.
1180 * If litLength != 0:
1184 * If litLength == 0:
1362 * with offset == 0, matchLength == 0, and litLength == length of last literals.
1363 * litLength may be == 0, and if so, then the sequence of (of: 0 ml: 0 ll: 0)

Completed in 141 milliseconds