Lines Matching refs:literals
120 * using src for literals stats, and baseline stats for sequence symbols
243 * price of literals (only) in specified segment (which length can be 0).
245 static U32 ZSTD_rawLiteralsCost(const BYTE* const literals, U32 const litLength,
261 assert(WEIGHT(optPtr->litFreq[literals[u]], optLevel) <= optPtr->litSumBasePrice); /* literal cost should never be negative */
262 price -= WEIGHT(optPtr->litFreq[literals[u]], optLevel);
278 * would be all literals.
328 * assumption : literals + litLengtn <= iend */
330 U32 litLength, const BYTE* literals,
333 /* literals */
337 optPtr->litFreq[literals[u]] += ZSTD_LITFREQ_ADD;
1092 /* We don't need to include the actual price of the literals because
1220 cur -= (opt[cur].mlen==0) ? opt[cur].litlen : 0; /* last sequence is actually only literals, fix cur to last match - note : may underflow, in which case, it's first sequence, and it's okay */
1304 if (mlen==0) { /* only literals => must be last "sequence", actually starting a new stream of sequences */
1306 ip = anchor + llen; /* last "sequence" is a bunch of literals => don't progress anchor */
1320 /* Return the last literals size */