Lines Matching refs:WEIGHT
32 # define WEIGHT(stat, opt) ((void)(opt), ZSTD_bitWeight(stat))
36 # define WEIGHT(stat,opt) ((void)(opt), ZSTD_fracWeight(stat))
40 # define WEIGHT(stat,opt) ((opt) ? ZSTD_fracWeight(stat) : ZSTD_bitWeight(stat))
58 /* Fweight was meant for "Fractional weight"
62 U32 const weight = BWeight + FWeight;
64 return weight;
85 optPtr->litSumBasePrice = WEIGHT(optPtr->litSum, optLevel);
86 optPtr->litLengthSumBasePrice = WEIGHT(optPtr->litLengthSum, optLevel);
87 optPtr->matchLengthSumBasePrice = WEIGHT(optPtr->matchLengthSum, optLevel);
88 optPtr->offCodeSumBasePrice = WEIGHT(optPtr->offCodeSum, optLevel);
285 U32 litPrice = WEIGHT(optPtr->litFreq[literals[u]], optLevel);
299 return WEIGHT(litLength, optLevel);
313 - WEIGHT(optPtr->litLengthFreq[llCode], optLevel);
335 return WEIGHT(mlBase, optLevel)
339 price = (offCode * BITCOST_MULTIPLIER) + (optPtr->offCodeSumBasePrice - WEIGHT(optPtr->offCodeFreq[offCode], optLevel));
345 price += (ML_bits[mlCode] * BITCOST_MULTIPLIER) + (optPtr->matchLengthSumBasePrice - WEIGHT(optPtr->matchLengthFreq[mlCode], optLevel));