Lines Matching refs:literals

138  *    using src for literals stats, and baseline stats for sequence symbols
150 if (optPtr->litLengthSum == 0) { /* no literals stats collected -> first block assumed -> init */
165 /* generate literals statistics from huffman table */
217 /* base initial cost of literals on direct frequency within src */
265 * price of literals (only) in specified segment (which length can be 0).
267 static U32 ZSTD_rawLiteralsCost(const BYTE* const literals, U32 const litLength,
271 DEBUGLOG(8, "ZSTD_rawLiteralsCost (%u literals)", litLength);
286 U32 litPrice = WEIGHT(optPtr->litFreq[literals[u]], optLevel);
305 * In such a case, the block would be all literals.
356 * assumption : literals + litLength <= iend */
358 U32 litLength, const BYTE* literals,
361 /* literals */
365 optPtr->litFreq[literals[u]] += ZSTD_LITFREQ_ADD;
1138 * defined as "a match followed by N literals".
1139 * Note how this is different from a Sequence, which is "N literals followed by a match".
1141 * for each literal position part of a literals run. */
1144 opt[0].mlen = 0; /* there are only literals so far */
1146 /* No need to include the actual price of the literals before the first match
1351 /* no solution : all matches have been converted into literals */
1374 * - So far, @opt stored stretches, aka a match followed by literals
1375 * - Now, it will store sequences, aka literals followed by a match
1387 /* last "sequence" is unfinished: just a bunch of literals */
1422 if (mlen==0) { /* only literals => must be last "sequence", actually starting a new stream of sequences */
1424 ip = anchor + llen; /* last "sequence" is a bunch of literals => don't progress anchor */
1441 /* Return the last literals size */