Lines Matching refs:litLength

227 static U32 ZSTD_rawLiteralsCost(const BYTE* const literals, U32 const litLength,  in ZSTD_rawLiteralsCost()  argument
231 if (litLength == 0) return 0; in ZSTD_rawLiteralsCost()
234 return (litLength << 3) * BITCOST_MULTIPLIER; /* Uncompressed - 8 bytes per literal. */ in ZSTD_rawLiteralsCost()
237 return (litLength*6) * BITCOST_MULTIPLIER; /* 6 bit per literal - no statistic used */ in ZSTD_rawLiteralsCost()
240 { U32 price = litLength * optPtr->litSumBasePrice; in ZSTD_rawLiteralsCost()
242 for (u=0; u < litLength; u++) { in ZSTD_rawLiteralsCost()
252 static U32 ZSTD_litLengthPrice(U32 const litLength, const optState_t* const optPtr, int optLevel) in ZSTD_litLengthPrice() argument
254 if (optPtr->priceType == zop_predef) return WEIGHT(litLength, optLevel); in ZSTD_litLengthPrice()
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()
832 assert(optLdm->seqStore.posInSequence <= currSeq.litLength + currSeq.matchLength); in ZSTD_opt_getNextMatchAndUpdateSeqStore()
834 literalsBytesRemaining = (optLdm->seqStore.posInSequence < currSeq.litLength) ? in ZSTD_opt_getNextMatchAndUpdateSeqStore()
835 currSeq.litLength - (U32)optLdm->seqStore.posInSequence : in ZSTD_opt_getNextMatchAndUpdateSeqStore()
838 currSeq.matchLength - ((U32)optLdm->seqStore.posInSequence - currSeq.litLength) : in ZSTD_opt_getNextMatchAndUpdateSeqStore()