Searched refs:price (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/lib/zstd/ |
H A D | zstd_opt.h | 103 U32 price, u; in ZSTD_getLiteralPrice() local 115 price = ssPtr->cachedPrice + additional * ssPtr->log2litSum; in ZSTD_getLiteralPrice() 117 price -= ZSTD_highbit32(ssPtr->litFreq[literals2[u]] + 1); in ZSTD_getLiteralPrice() 118 ssPtr->cachedPrice = price; in ZSTD_getLiteralPrice() 121 price = litLength * ssPtr->log2litSum; in ZSTD_getLiteralPrice() 123 price -= ZSTD_highbit32(ssPtr->litFreq[literals[u]] + 1); in ZSTD_getLiteralPrice() 127 ssPtr->cachedPrice = price; in ZSTD_getLiteralPrice() 136 price += LL_bits[llCode] + ssPtr->log2litLengthSum - ZSTD_highbit32(ssPtr->litLengthFreq[llCode] + 1); in ZSTD_getLiteralPrice() 139 return price; in ZSTD_getLiteralPrice() 145 U32 price; in ZSTD_getPrice() local 440 U32 cur, match_num, last_pos, litlen, price; ZSTD_compressBlock_opt_generic() local 738 U32 cur, match_num, last_pos, litlen, price; ZSTD_compressBlock_opt_extDict_generic() local [all...] |
H A D | zstd_internal.h | 175 U32 price; member
|
/kernel/linux/linux-6.6/lib/zstd/compress/ |
H A D | zstd_opt.c | 58 * @return price in bytes as fractional value 60 MEM_STATIC double ZSTD_fCost(U32 price) in ZSTD_fCost() argument 62 return (double)price / (BITCOST_MULTIPLIER*8); in ZSTD_fCost() 243 * price of literals (only) in specified segment (which length can be 0). 244 * does not include price of literalLength symbol */ 258 { U32 price = litLength * optPtr->litSumBasePrice; in ZSTD_rawLiteralsCost() local 262 price -= WEIGHT(optPtr->litFreq[literals[u]], optLevel); in ZSTD_rawLiteralsCost() 264 return price; in ZSTD_rawLiteralsCost() 275 /* We can't compute the litLength price for sizes >= ZSTD_BLOCKSIZE_MAX in ZSTD_litLengthPrice() 303 U32 price; in ZSTD_getMatchPrice() local 1149 int const price = opt[cur-1].price ZSTD_compressBlock_opt_generic() local 1238 int const price = (int)basePrice + (int)ZSTD_getMatchPrice(offset, mlen, optStatePtr, optLevel); ZSTD_compressBlock_opt_generic() local [all...] |
H A D | zstd_compress_internal.h | 148 int price; member
|
Completed in 7 milliseconds