Lines Matching refs:previous
365 int step_function_plus(int previous, double step) { in step_function_plus() argument
366 return static_cast<int>(previous + step); in step_function_plus()
368 int step_function_multiply(int previous, double multiply) { in step_function_multiply() argument
369 return static_cast<int>(previous * multiply); in step_function_multiply()
374 int step_function_power2_ladder(int previous, double nsteps) { in step_function_power2_ladder() argument
378 if (previous < 2 * steps) in step_function_power2_ladder()
379 return previous + 1; in step_function_power2_ladder()
381 int prev_power2 = previous / 2; // start with half the given value in step_function_power2_ladder()
390 assert((prev_power2 <= previous) && (2 * prev_power2 > previous)); in step_function_power2_ladder()
392 return previous + (prev_power2 / steps); in step_function_power2_ladder()
430 int operator()(int previous) const { in operator ()()
431 assert(0 <= previous); // test 0<=first and loop discipline in operator ()()
432 const int ret = step_function(previous, step_function_argument); in operator ()()
433 assert(previous < ret); in operator ()()