Searched refs:literals (Results 1 – 2 of 2) sorted by relevance
/linux-4.19.296/lib/zstd/ |
D | zstd_opt.h | 101 FORCE_INLINE U32 ZSTD_getLiteralPrice(seqStore_t *ssPtr, U32 litLength, const BYTE *literals) in ZSTD_getLiteralPrice() argument 112 if (ssPtr->cachedLiterals == literals) { in ZSTD_getLiteralPrice() 123 price -= ZSTD_highbit32(ssPtr->litFreq[literals[u]] + 1); in ZSTD_getLiteralPrice() 126 ssPtr->cachedLiterals = literals; in ZSTD_getLiteralPrice() 142 FORCE_INLINE U32 ZSTD_getPrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 of… in ZSTD_getPrice() argument 149 …return ZSTD_getLiteralPrice(seqStorePtr, litLength, literals) + ZSTD_highbit32((U32)matchLength + … 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 172 seqStorePtr->litFreq[literals[u]] += ZSTD_LITFREQ_ADD; in ZSTD_updatePrice()
|
D | compress.c | 621 const BYTE *const literals = seqStorePtr->litStart; in ZSTD_compressSequences_internal() local 622 size_t const litSize = seqStorePtr->lit - literals; in ZSTD_compressSequences_internal() 623 size_t const cSize = ZSTD_compressLiterals(zc, op, dstCapacity, literals, litSize); in ZSTD_compressSequences_internal() 861 ZSTD_STATIC void ZSTD_storeSeq(seqStore_t *seqStorePtr, size_t litLength, const void *literals, U32… in ZSTD_storeSeq() argument 864 ZSTD_wildcopy(seqStorePtr->lit, literals, litLength); in ZSTD_storeSeq()
|