Searched refs:TFRC_CALC_X_ARRSIZE (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/net/dccp/ccids/lib/ |
H A D | tfrc_equation.c | 13 #define TFRC_CALC_X_ARRSIZE 500 macro 15 #define TFRC_SMALLEST_P (TFRC_CALC_X_SPLIT/TFRC_CALC_X_ARRSIZE) 67 TFRC_SMALLEST_P = TFRC_CALC_X_SPLIT / TFRC_CALC_X_ARRSIZE 70 for(i=0; i < TFRC_CALC_X_ARRSIZE; i++) { 71 lookup[i][0] = g((i+1) * 1000000/TFRC_CALC_X_ARRSIZE); 72 lookup[i][1] = g((i+1) * TFRC_CALC_X_SPLIT/TFRC_CALC_X_ARRSIZE); 75 With the given configuration, we have, with M = TFRC_CALC_X_ARRSIZE-1, 87 static const u32 tfrc_calc_x_lookup[TFRC_CALC_X_ARRSIZE][2] = { 593 u32 try, low = 0, high = TFRC_CALC_X_ARRSIZE - 1; in tfrc_binsearch() 638 index = p/(1000000/TFRC_CALC_X_ARRSIZE) in tfrc_calc_x() [all...] |
/kernel/linux/linux-6.6/net/dccp/ccids/lib/ |
H A D | tfrc_equation.c | 13 #define TFRC_CALC_X_ARRSIZE 500 macro 15 #define TFRC_SMALLEST_P (TFRC_CALC_X_SPLIT/TFRC_CALC_X_ARRSIZE) 67 TFRC_SMALLEST_P = TFRC_CALC_X_SPLIT / TFRC_CALC_X_ARRSIZE 70 for(i=0; i < TFRC_CALC_X_ARRSIZE; i++) { 71 lookup[i][0] = g((i+1) * 1000000/TFRC_CALC_X_ARRSIZE); 72 lookup[i][1] = g((i+1) * TFRC_CALC_X_SPLIT/TFRC_CALC_X_ARRSIZE); 75 With the given configuration, we have, with M = TFRC_CALC_X_ARRSIZE-1, 87 static const u32 tfrc_calc_x_lookup[TFRC_CALC_X_ARRSIZE][2] = { 593 u32 try, low = 0, high = TFRC_CALC_X_ARRSIZE - 1; in tfrc_binsearch() 638 index = p/(1000000/TFRC_CALC_X_ARRSIZE) in tfrc_calc_x() [all...] |
Completed in 2 milliseconds