Lines Matching refs:total_weight
43 unsigned total_freq, total_weight;
130 m->total_weight = 2;
147 m->total_weight += m->upd_val;
148 if (m->total_weight > 0x2000) {
149 m->total_weight = (m->total_weight + 1) >> 1;
151 if (m->total_weight == m->zero_weight)
152 m->total_weight = m->zero_weight + 1;
157 scale = 0x80000000u / m->total_weight;
159 m->total_freq = m->total_weight * scale >> 18;