Searched refs:SCALE_RED (Results 1 – 3 of 3) sorted by relevance
164 #define SCALE_RED 16 macro165 #define SCALE(x) ( (x) << SCALE_RED )166 #define SCALE_VAL(x) ( (x) >> SCALE_RED )167 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED )
112 #define SCALE_RED 16 macro113 #define SCALE(x) ( (x) << SCALE_RED )114 #define SCALE_VAL(x) ( (x) >> SCALE_RED )115 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED )
495 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()