Lines Matching refs:seqStorePtr
142 FORCE_INLINE U32 ZSTD_getPrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 of… in ZSTD_getPrice() argument
148 if (seqStorePtr->staticPrices) in ZSTD_getPrice()
149 …return ZSTD_getLiteralPrice(seqStorePtr, litLength, literals) + ZSTD_highbit32((U32)matchLength + … in ZSTD_getPrice()
151 …price = offCode + seqStorePtr->log2offCodeSum - ZSTD_highbit32(seqStorePtr->offCodeFreq[offCode] +… in ZSTD_getPrice()
159 …price += ML_bits[mlCode] + seqStorePtr->log2matchLengthSum - ZSTD_highbit32(seqStorePtr->matchLeng… in ZSTD_getPrice()
162 return price + ZSTD_getLiteralPrice(seqStorePtr, litLength, literals) + seqStorePtr->factor; in ZSTD_getPrice()
165 ZSTD_STATIC void ZSTD_updatePrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32… in ZSTD_updatePrice() argument
170 seqStorePtr->litSum += litLength * ZSTD_LITFREQ_ADD; in ZSTD_updatePrice()
172 seqStorePtr->litFreq[literals[u]] += ZSTD_LITFREQ_ADD; in ZSTD_updatePrice()
178 seqStorePtr->litLengthFreq[llCode]++; in ZSTD_updatePrice()
179 seqStorePtr->litLengthSum++; in ZSTD_updatePrice()
185 seqStorePtr->offCodeSum++; in ZSTD_updatePrice()
186 seqStorePtr->offCodeFreq[offCode]++; in ZSTD_updatePrice()
193 seqStorePtr->matchLengthFreq[mlCode]++; in ZSTD_updatePrice()
194 seqStorePtr->matchLengthSum++; in ZSTD_updatePrice()
197 ZSTD_setLog2Prices(seqStorePtr); in ZSTD_updatePrice()
409 seqStore_t *seqStorePtr = &(ctx->seqStore); in ZSTD_compressBlock_opt_generic() local
423 ZSTD_optimal_t *opt = seqStorePtr->priceTable; in ZSTD_compressBlock_opt_generic()
424 ZSTD_match_t *matches = seqStorePtr->matchTable; in ZSTD_compressBlock_opt_generic()
430 ZSTD_rescaleFreqs(seqStorePtr, (const BYTE *)src, srcSize); in ZSTD_compressBlock_opt_generic()
463 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, best_off, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
493 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
521 price = opt[cur - litlen].price + ZSTD_getLiteralPrice(seqStorePtr, litlen, inr - litlen); in ZSTD_compressBlock_opt_generic()
523 price = ZSTD_getLiteralPrice(seqStorePtr, litlen, anchor); in ZSTD_compressBlock_opt_generic()
526 price = opt[cur - 1].price + ZSTD_getLiteralPrice(seqStorePtr, litlen, inr - 1); in ZSTD_compressBlock_opt_generic()
574 price = opt[cur - litlen].price + ZSTD_getPrice(seqStorePtr, litlen, inr - litlen, in ZSTD_compressBlock_opt_generic()
577 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, best_off, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
580 … price = opt[cur].price + ZSTD_getPrice(seqStorePtr, 0, NULL, best_off, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
609 price = opt[cur - litlen].price + ZSTD_getPrice(seqStorePtr, litlen, ip + cur - litlen, in ZSTD_compressBlock_opt_generic()
612 … price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
615 …price = opt[cur].price + ZSTD_getPrice(seqStorePtr, 0, NULL, matches[u].off - 1, mlen - MINMATCH, … in ZSTD_compressBlock_opt_generic()
678 ZSTD_updatePrice(seqStorePtr, litLength, anchor, offset, mlen - MINMATCH); in ZSTD_compressBlock_opt_generic()
679 ZSTD_storeSeq(seqStorePtr, litLength, anchor, offset, mlen - MINMATCH); in ZSTD_compressBlock_opt_generic()
694 memcpy(seqStorePtr->lit, anchor, lastLLSize); in ZSTD_compressBlock_opt_generic()
695 seqStorePtr->lit += lastLLSize; in ZSTD_compressBlock_opt_generic()
702 seqStore_t *seqStorePtr = &(ctx->seqStore); in ZSTD_compressBlock_opt_extDict_generic() local
720 ZSTD_optimal_t *opt = seqStorePtr->priceTable; in ZSTD_compressBlock_opt_extDict_generic()
721 ZSTD_match_t *matches = seqStorePtr->matchTable; in ZSTD_compressBlock_opt_extDict_generic()
733 ZSTD_rescaleFreqs(seqStorePtr, (const BYTE *)src, srcSize); in ZSTD_compressBlock_opt_extDict_generic()
771 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, best_off, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_extDict_generic()
810 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_extDict_generic()
829 price = opt[cur - litlen].price + ZSTD_getLiteralPrice(seqStorePtr, litlen, inr - litlen); in ZSTD_compressBlock_opt_extDict_generic()
831 price = ZSTD_getLiteralPrice(seqStorePtr, litlen, anchor); in ZSTD_compressBlock_opt_extDict_generic()
834 price = opt[cur - 1].price + ZSTD_getLiteralPrice(seqStorePtr, litlen, inr - 1); in ZSTD_compressBlock_opt_extDict_generic()
888 price = opt[cur - litlen].price + ZSTD_getPrice(seqStorePtr, litlen, inr - litlen, in ZSTD_compressBlock_opt_extDict_generic()
891 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, best_off, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_extDict_generic()
894 … price = opt[cur].price + ZSTD_getPrice(seqStorePtr, 0, NULL, best_off, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_extDict_generic()
923 price = opt[cur - litlen].price + ZSTD_getPrice(seqStorePtr, litlen, ip + cur - litlen, in ZSTD_compressBlock_opt_extDict_generic()
926 … price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_extDict_generic()
929 …price = opt[cur].price + ZSTD_getPrice(seqStorePtr, 0, NULL, matches[u].off - 1, mlen - MINMATCH, … in ZSTD_compressBlock_opt_extDict_generic()
993 ZSTD_updatePrice(seqStorePtr, litLength, anchor, offset, mlen - MINMATCH); in ZSTD_compressBlock_opt_extDict_generic()
994 ZSTD_storeSeq(seqStorePtr, litLength, anchor, offset, mlen - MINMATCH); in ZSTD_compressBlock_opt_extDict_generic()
1009 memcpy(seqStorePtr->lit, anchor, lastLLSize); in ZSTD_compressBlock_opt_extDict_generic()
1010 seqStorePtr->lit += lastLLSize; in ZSTD_compressBlock_opt_extDict_generic()