WEIGHT
U32 litPrice = WEIGHT(optPtr->litFreq[literals[u]], optLevel);
return WEIGHT(litLength, optLevel);
- WEIGHT(optPtr->litLengthFreq[llCode], optLevel);
return WEIGHT(mlBase, optLevel)
price = (offCode * BITCOST_MULTIPLIER) + (optPtr->offCodeSumBasePrice - WEIGHT(optPtr->offCodeFreq[offCode], optLevel));
price += (ML_bits[mlCode] * BITCOST_MULTIPLIER) + (optPtr->matchLengthSumBasePrice - WEIGHT(optPtr->matchLengthFreq[mlCode], optLevel));
optPtr->litSumBasePrice = WEIGHT(optPtr->litSum, optLevel);
optPtr->litLengthSumBasePrice = WEIGHT(optPtr->litLengthSum, optLevel);
optPtr->matchLengthSumBasePrice = WEIGHT(optPtr->matchLengthSum, optLevel);
optPtr->offCodeSumBasePrice = WEIGHT(optPtr->offCodeSum, optLevel);
if (PRINT_FIELD(WEIGHT))
if (PRINT_FIELD(WEIGHT) &&
PERF_SAMPLE_TYPE(WEIGHT, "-W"),
BUILD_CHECK_SAMPLE(WEIGHT);
evsel__set_sample_bit(evsel, WEIGHT);
evsel__set_sample_bit(evsel, WEIGHT);
bit_name(WEIGHT), bit_name(PHYS_ADDR), bit_name(AUX),