Home
last modified time | relevance | path

Searched refs:SCALE_RED (Results 1 – 3 of 3) sorted by relevance

/f-stack/freebsd/netinet/
H A Dip_dummynet.h164 #define SCALE_RED 16 macro
165 #define SCALE(x) ( (x) << SCALE_RED )
166 #define SCALE_VAL(x) ( (x) >> SCALE_RED )
167 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED )
/f-stack/freebsd/netpfil/ipfw/
H A Dip_dn_glue.c112 #define SCALE_RED 16 macro
113 #define SCALE(x) ( (x) << SCALE_RED )
114 #define SCALE_VAL(x) ( (x) >> SCALE_RED )
115 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED )
/f-stack/tools/ipfw/
H A Ddummynet.c495 1.0 * fs->w_q / (double)(1 << SCALE_RED), in print_flowset_parms()
498 1.0 * fs->max_p / (double)(1 << SCALE_RED)); in print_flowset_parms()
1606 fs->w_q = (int) (w_q * (1 << SCALE_RED)); in ipfw_config_pipe()
1622 fs->max_p = (int)(max_p * (1 << SCALE_RED)); in ipfw_config_pipe()
1829 w_q = ((double)fs->w_q) / (1 << SCALE_RED); in ipfw_config_pipe()
1837 fs->lookup_weight = (int)(weight * (1 << SCALE_RED)); in ipfw_config_pipe()