Searched refs:w_tab (Results 1 - 2 of 2) sorted by relevance

/netbsd-current/sys/altq/
H A Daltq_red.h128 int32_t w_tab[32]; member in struct:wtab
H A Daltq_red.c643 * w_tab[n] holds ((1 - Wq)^(2^n)) in fixed-point.
668 w->w_tab[0] = ((weight - 1) << FP_SHIFT) / weight;
670 w->w_tab[i] = (w->w_tab[i-1] * w->w_tab[i-1]) >> FP_SHIFT;
671 if (w->w_tab[i] == 0 && w->w_param_max == 0)
715 val = (val * w->w_tab[i]) >> FP_SHIFT;

Completed in 192 milliseconds