Lines Matching refs:cost
67 * Returns the cost in bytes of encoding the normalized count header.
81 * Returns the cost in bits of encoding the distribution described by count
86 unsigned cost = 0;
93 cost += count[s] * kInverseProbabilityLog256[norm];
95 return cost >> 8;
99 * Returns the cost in bits of encoding the distribution in count using ctable.
108 size_t cost = 0;
127 cost += (size_t)count[s] * bitCost;
129 return cost >> kAccuracyLog;
133 * Returns the cost in bits of encoding the distribution in count using the
141 size_t cost = 0;
149 cost += count[s] * kInverseProbabilityLog256[norm256];
151 return cost >> 8;