Searched refs:SCALE_RED (Results 1 – 3 of 3) sorted by relevance
162 #define SCALE_RED 16 macro163 #define SCALE(x) ( (x) << SCALE_RED )164 #define SCALE_VAL(x) ( (x) >> SCALE_RED )165 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED )
111 #define SCALE_RED 16 macro112 #define SCALE(x) ( (x) << SCALE_RED )113 #define SCALE_VAL(x) ( (x) >> SCALE_RED )114 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED )
502 1.0 * fs->w_q / (double)(1 << SCALE_RED), in print_flowset_parms() 505 1.0 * fs->max_p / (double)(1 << SCALE_RED)); in print_flowset_parms() 1627 fs->w_q = (int) (w_q * (1 << SCALE_RED)); in ipfw_config_pipe() 1643 fs->max_p = (int)(max_p * (1 << SCALE_RED)); in ipfw_config_pipe() 1850 w_q = ((double)fs->w_q) / (1 << SCALE_RED); in ipfw_config_pipe() 1858 fs->lookup_weight = (int)(weight * (1 << SCALE_RED)); in ipfw_config_pipe()