Lines Matching refs:CUBIC_SHIFT
43 #define CUBIC_SHIFT 8
47 /* 0.5 << CUBIC_SHIFT. */
50 /* ~0.8 << CUBIC_SHIFT. */
53 /* ~0.2 << CUBIC_SHIFT. */
59 /* (2 << CUBIC_SHIFT) - ONE_SUB_CUBIC_BETA. */
62 /* ~0.4 << CUBIC_SHIFT. */
65 /* CUBIC fast convergence factor: ~0.9 << CUBIC_SHIFT. */
90 return (pow((wmax_pkts * 0.2) / C, (1.0 / 3.0)) * pow(2, CUBIC_SHIFT));
103 theoretical_cubic_k(wmax_pkts) / pow(2, CUBIC_SHIFT), 3.0))));
139 /* (wmax * beta)/C with CUBIC_SHIFT worth of precision. */
140 s = ((wmax_pkts * ONE_SUB_CUBIC_BETA) << CUBIC_SHIFT) / CUBIC_C_FACTOR;
142 /* Rebase s to be between 1 and 1/8 with a shift of CUBIC_SHIFT. */
150 * shifts: 275 == 1.072302 << CUBIC_SHIFT, 98 == 0.3812513 <<
151 * CUBIC_SHIFT, 120 == 0.46946116 << CUBIC_SHIFT.
153 K = (((s * 275) >> CUBIC_SHIFT) + 98) -
154 (((s * s * 120) >> CUBIC_SHIFT) >> CUBIC_SHIFT);
171 /* K is in fixed point form with CUBIC_SHIFT worth of precision. */
173 /* t - K, with CUBIC_SHIFT worth of precision. */
174 cwnd = ((int64_t)(ticks_since_cong << CUBIC_SHIFT) - (K * hz)) / hz;
176 /* (t - K)^3, with CUBIC_SHIFT^3 worth of precision. */
182 * CUBIC_SHIFT included in the value. 3 from the cubing of cwnd above,
209 << CUBIC_SHIFT) / rtt_ticks)) >> CUBIC_SHIFT);
226 smss) << CUBIC_SHIFT) / TWO_SUB_PT2 / rtt_ticks)) >> CUBIC_SHIFT);