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

/linux-4.4.14/net/dccp/ccids/lib/
H A Dtfrc_equation.c17 #define TFRC_CALC_X_ARRSIZE 500 macro
19 #define TFRC_SMALLEST_P (TFRC_CALC_X_SPLIT/TFRC_CALC_X_ARRSIZE)
71 TFRC_SMALLEST_P = TFRC_CALC_X_SPLIT / TFRC_CALC_X_ARRSIZE
74 for(i=0; i < TFRC_CALC_X_ARRSIZE; i++) {
75 lookup[i][0] = g((i+1) * 1000000/TFRC_CALC_X_ARRSIZE);
76 lookup[i][1] = g((i+1) * TFRC_CALC_X_SPLIT/TFRC_CALC_X_ARRSIZE);
79 With the given configuration, we have, with M = TFRC_CALC_X_ARRSIZE-1,
91 static const u32 tfrc_calc_x_lookup[TFRC_CALC_X_ARRSIZE][2] = {
597 u32 try, low = 0, high = TFRC_CALC_X_ARRSIZE - 1; tfrc_binsearch()
642 index = p/(1000000/TFRC_CALC_X_ARRSIZE) - 1; tfrc_calc_x()
678 if (fvalue > tfrc_calc_x_lookup[TFRC_CALC_X_ARRSIZE - 1][0]) { tfrc_calc_x_reverse_lookup()
683 if (fvalue <= tfrc_calc_x_lookup[TFRC_CALC_X_ARRSIZE - 1][1]) { tfrc_calc_x_reverse_lookup()
685 return (index + 1) * TFRC_CALC_X_SPLIT / TFRC_CALC_X_ARRSIZE; tfrc_calc_x_reverse_lookup()
690 return (index + 1) * 1000000 / TFRC_CALC_X_ARRSIZE; tfrc_calc_x_reverse_lookup()

Completed in 41 milliseconds