Lines Matching refs:lo
13 // Append the powers of 'mult' in the closed interval [lo, hi].
16 typename std::vector<T>::iterator AddPowers(std::vector<T>* dst, T lo, T hi,
18 BM_CHECK_GE(lo, 0);
19 BM_CHECK_GE(hi, lo);
28 if (i >= lo) {
40 void AddNegatedPowers(std::vector<T>* dst, T lo, T hi, int mult) {
41 // We negate lo and hi so we require that they cannot be equal to 'min'.
42 BM_CHECK_GT(lo, std::numeric_limits<T>::min());
44 BM_CHECK_GE(hi, lo);
50 const auto lo_complement = static_cast<T>(-lo);
60 void AddRange(std::vector<T>* dst, T lo, T hi, int mult) {
64 BM_CHECK_GE(hi, lo);
67 // Add "lo"
68 dst->push_back(lo);
70 // Handle lo == hi as a special case, so we then know
71 // lo < hi and so it is safe to add 1 to lo and subtract 1
73 if (lo == hi) return;
76 if (lo + 1 == hi) {
81 // Add all powers of 'mult' in the range [lo+1, hi-1] (inclusive).
82 const auto lo_inner = static_cast<T>(lo + 1);
91 if (lo < 0 && hi >= 0) {