Lines Matching refs:litLength
4197 unsigned int litLength; /* Literal length */ member
6625 U16 litLength; member
6644 U32 litLength; member
6655 seqLen.litLength = seq->litLength; in ZSTD_getSequenceLength()
6659 seqLen.litLength += 0xFFFF; in ZSTD_getSequenceLength()
10095 U32 litLength; member
10207 MEM_STATIC U32 ZSTD_LLcode(U32 litLength) in ZSTD_LLcode() argument
10218 return (litLength > 63) ? ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; in ZSTD_LLcode()
10348 void ZSTD_storeSeq(seqStore_t* seqStorePtr, size_t litLength, const BYTE* literals, const BYTE* lit… in ZSTD_storeSeq() argument
10351 BYTE const* const litEnd = literals + litLength; in ZSTD_storeSeq()
10357 pos, (U32)litLength, (U32)mlBase+MINMATCH, (U32)offCode); in ZSTD_storeSeq()
10363 assert(seqStorePtr->lit + litLength <= seqStorePtr->litStart + seqStorePtr->maxNbLit); in ZSTD_storeSeq()
10364 assert(literals + litLength <= litLimit); in ZSTD_storeSeq()
10371 if (litLength > 16) { in ZSTD_storeSeq()
10372 … ZSTD_wildcopy(seqStorePtr->lit+16, literals+16, (ptrdiff_t)litLength-16, ZSTD_no_overlap); in ZSTD_storeSeq()
10377 seqStorePtr->lit += litLength; in ZSTD_storeSeq()
10380 if (litLength>0xFFFF) { in ZSTD_storeSeq()
10385 seqStorePtr->sequences[0].litLength = (U16)litLength; in ZSTD_storeSeq()
11543 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body()
11570 (unsigned)sequences[n].litLength, in ZSTD_encodeSequences_body()
11581 BIT_addBits(&blockStream, sequences[n].litLength, llBits); in ZSTD_encodeSequences_body()
12121 litLengthSum += seqLen.litLength; in ZSTD_seqDecompressedSize()
12445 litSize += ZSTD_getSequenceLength(seqStorePtr, sequence).litLength; in ZSTD_compressSubBlock_multi()
12520 … ZSTD_updateRep(rep.rep, seq->offset - 1, ZSTD_getSequenceLength(seqStorePtr, seq).litLength == 0); in ZSTD_compressSubBlock_multi()
15021 U32 const llv = sequences[u].litLength; in ZSTD_seqToCodes()
15408 outSeqs[i].litLength = seqs[i].litLength; in ZSTD_copyBlockSequences()
15413 outSeqs[i].litLength += 0x10000; in ZSTD_copyBlockSequences()
15423 if (outSeqs[i].litLength == 0) { in ZSTD_copyBlockSequences()
15440 position += outSeqs[i].litLength; in ZSTD_copyBlockSequences()
19205 { size_t const litLength = start - anchor; in ZSTD_compressBlock_lazy_generic() local
19206 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offset, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_generic()
19457 { size_t const litLength = start - anchor; in ZSTD_compressBlock_lazy_extDict_generic() local
19458 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offset, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_extDict_generic()
19913 seq->litLength = (U32)(ip - anchor); in ZSTD_ldm_generateSequences_internal()
20019 sequences->seq[prevSize].litLength += (U32)leftoverSize; in ZSTD_ldm_generateSequences()
20032 if (srcSize <= seq->litLength) { in ZSTD_ldm_skipSequences()
20034 seq->litLength -= (U32)srcSize; in ZSTD_ldm_skipSequences()
20037 srcSize -= seq->litLength; in ZSTD_ldm_skipSequences()
20038 seq->litLength = 0; in ZSTD_ldm_skipSequences()
20045 seq[1].litLength += seq[0].matchLength; in ZSTD_ldm_skipSequences()
20070 if (remaining >= sequence.litLength + sequence.matchLength) { in maybeSplitSequence()
20075 if (remaining <= sequence.litLength) { in maybeSplitSequence()
20077 } else if (remaining < sequence.litLength + sequence.matchLength) { in maybeSplitSequence()
20078 sequence.matchLength = remaining - sequence.litLength; in maybeSplitSequence()
20115 assert(ip + sequence.litLength + sequence.matchLength <= iend); in ZSTD_ldm_blockCompress()
20121 …s %u : calling block compressor on segment of size %u", (unsigned)(ip-istart), sequence.litLength); in ZSTD_ldm_blockCompress()
20124 blockCompressor(ms, seqStore, rep, ip, sequence.litLength); in ZSTD_ldm_blockCompress()
20125 ip += sequence.litLength; in ZSTD_ldm_blockCompress()
20359 static U32 ZSTD_rawLiteralsCost(const BYTE* const literals, U32 const litLength, in ZSTD_rawLiteralsCost() argument
20363 if (litLength == 0) return 0; in ZSTD_rawLiteralsCost()
20366 return (litLength << 3) * BITCOST_MULTIPLIER; /* Uncompressed - 8 bytes per literal. */ in ZSTD_rawLiteralsCost()
20369 return (litLength*6) * BITCOST_MULTIPLIER; /* 6 bit per literal - no statistic used */ in ZSTD_rawLiteralsCost()
20372 { U32 price = litLength * optPtr->litSumBasePrice; in ZSTD_rawLiteralsCost()
20374 for (u=0; u < litLength; u++) { in ZSTD_rawLiteralsCost()
20384 static U32 ZSTD_litLengthPrice(U32 const litLength, const optState_t* const optPtr, int optLevel) in ZSTD_litLengthPrice() argument
20386 if (optPtr->priceType == zop_predef) return WEIGHT(litLength, optLevel); in ZSTD_litLengthPrice()
20389 { U32 const llCode = ZSTD_LLcode(litLength); in ZSTD_litLengthPrice()
20433 U32 litLength, const BYTE* literals, in ZSTD_updateStats() argument
20439 for (u=0; u < litLength; u++) in ZSTD_updateStats()
20441 optPtr->litSum += litLength*ZSTD_LITFREQ_ADD; in ZSTD_updateStats()
20445 { U32 const llCode = ZSTD_LLcode(litLength); in ZSTD_updateStats()
26945 size_t litLength; member
27057 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceEnd()
27058 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequenceEnd()
27059 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequenceEnd()
27065 …RETURN_ERROR_IF(sequence.litLength > (size_t)(litLimit - *litPtr), corruption_detected, "try to re… in ZSTD_execSequenceEnd()
27070 ZSTD_safecopy(op, oend_w, *litPtr, sequence.litLength, ZSTD_no_overlap); in ZSTD_execSequenceEnd()
27100 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequence()
27101 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequence()
27104 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequence()
27134 if (UNLIKELY(sequence.litLength > 16)) { in ZSTD_execSequence()
27135 ZSTD_wildcopy(op+16, (*litPtr)+16, sequence.litLength-16, ZSTD_no_overlap); in ZSTD_execSequence()
27294 seq.litLength = llBase; in ZSTD_decodeSequence()
27296 seq.litLength += BIT_readBitsFast(&seqState->DStream, llBits/*>0*/); in ZSTD_decodeSequence()
27302 (U32)seq.litLength, (U32)seq.matchLength, (U32)seq.offset); in ZSTD_decodeSequence()
27305 size_t const pos = seqState->pos + seq.litLength; in ZSTD_decodeSequence()
27364 size_t const sequenceSize = seq.litLength + seq.matchLength; in ZSTD_assertValidSequence()
27365 BYTE const* const oLitEnd = op + seq.litLength; in ZSTD_assertValidSequence()
27367 (U32)seq.litLength, (U32)seq.matchLength, (U32)seq.offset); in ZSTD_assertValidSequence()