Home
last modified time | relevance | path

Searched refs:seqStorePtr (Results 1 – 3 of 3) sorted by relevance

/lib/zstd/
Dzstd_opt.h142 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()
[all …]
Dcompress.c563 void ZSTD_seqToCodes(const seqStore_t *seqStorePtr) in ZSTD_seqToCodes() argument
567 const seqDef *const sequences = seqStorePtr->sequencesStart; in ZSTD_seqToCodes()
568 BYTE *const llCodeTable = seqStorePtr->llCode; in ZSTD_seqToCodes()
569 BYTE *const ofCodeTable = seqStorePtr->ofCode; in ZSTD_seqToCodes()
570 BYTE *const mlCodeTable = seqStorePtr->mlCode; in ZSTD_seqToCodes()
571 U32 const nbSeq = (U32)(seqStorePtr->sequences - seqStorePtr->sequencesStart); in ZSTD_seqToCodes()
580 if (seqStorePtr->longLengthID == 1) in ZSTD_seqToCodes()
581 llCodeTable[seqStorePtr->longLengthPos] = MaxLL; in ZSTD_seqToCodes()
582 if (seqStorePtr->longLengthID == 2) in ZSTD_seqToCodes()
583 mlCodeTable[seqStorePtr->longLengthPos] = MaxML; in ZSTD_seqToCodes()
[all …]
Dzstd_internal.h223 void ZSTD_seqToCodes(const seqStore_t *seqStorePtr);