Searched refs:optLevel (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_opt.c | 72 static void ZSTD_setBasePrices(optState_t* optPtr, int optLevel) in ZSTD_setBasePrices() argument 75 optPtr->litSumBasePrice = WEIGHT(optPtr->litSum, optLevel); in ZSTD_setBasePrices() 76 optPtr->litLengthSumBasePrice = WEIGHT(optPtr->litLengthSum, optLevel); in ZSTD_setBasePrices() 77 optPtr->matchLengthSumBasePrice = WEIGHT(optPtr->matchLengthSum, optLevel); in ZSTD_setBasePrices() 78 optPtr->offCodeSumBasePrice = WEIGHT(optPtr->offCodeSum, optLevel); in ZSTD_setBasePrices() 106 int const optLevel) in ZSTD_rescaleFreqs() argument 209 ZSTD_setBasePrices(optPtr, optLevel); in ZSTD_rescaleFreqs() 217 int optLevel) in ZSTD_rawLiteralsCost() argument 231 …assert(WEIGHT(optPtr->litFreq[literals[u]], optLevel) <= optPtr->litSumBasePrice); /* literal co… in ZSTD_rawLiteralsCost() 232 price -= WEIGHT(optPtr->litFreq[literals[u]], optLevel); in ZSTD_rawLiteralsCost() [all …]
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_opt.c | 71 static void ZSTD_setBasePrices(optState_t* optPtr, int optLevel) in ZSTD_setBasePrices() argument 74 optPtr->litSumBasePrice = WEIGHT(optPtr->litSum, optLevel); in ZSTD_setBasePrices() 75 optPtr->litLengthSumBasePrice = WEIGHT(optPtr->litLengthSum, optLevel); in ZSTD_setBasePrices() 76 optPtr->matchLengthSumBasePrice = WEIGHT(optPtr->matchLengthSum, optLevel); in ZSTD_setBasePrices() 77 optPtr->offCodeSumBasePrice = WEIGHT(optPtr->offCodeSum, optLevel); in ZSTD_setBasePrices() 126 int const optLevel) in ZSTD_rescaleFreqs() argument 239 ZSTD_setBasePrices(optPtr, optLevel); in ZSTD_rescaleFreqs() 247 int optLevel) in ZSTD_rawLiteralsCost() argument 261 …assert(WEIGHT(optPtr->litFreq[literals[u]], optLevel) <= optPtr->litSumBasePrice); /* literal co… in ZSTD_rawLiteralsCost() 262 price -= WEIGHT(optPtr->litFreq[literals[u]], optLevel); in ZSTD_rawLiteralsCost() [all …]
|