Lines Matching refs:total_weight
42 unsigned total_freq, total_weight;
129 m->total_weight = 2;
146 m->total_weight += m->upd_val;
147 if (m->total_weight > 0x2000) {
148 m->total_weight = (m->total_weight + 1) >> 1;
150 if (m->total_weight == m->zero_weight)
151 m->total_weight = m->zero_weight + 1;
156 scale = 0x80000000u / m->total_weight;
158 m->total_freq = m->total_weight * scale >> 18;