Lines Matching refs:hi
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,
19 BM_CHECK_GE(hi, lo);
27 for (T i = static_cast<T>(1); i <= hi; i *= static_cast<T>(mult)) {
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'.
43 BM_CHECK_GT(hi, std::numeric_limits<T>::min());
44 BM_CHECK_GE(hi, lo);
45 BM_CHECK_LE(hi, 0);
51 const auto hi_complement = static_cast<T>(-hi);
60 void AddRange(std::vector<T>* dst, T lo, T hi, int mult) {
64 BM_CHECK_GE(hi, 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
72 // from hi without falling outside of the range of T.
73 if (lo == hi) return;
76 if (lo + 1 == hi) {
77 dst->push_back(hi);
81 // Add all powers of 'mult' in the range [lo+1, hi-1] (inclusive).
83 const auto hi_inner = static_cast<T>(hi - 1);
91 if (lo < 0 && hi >= 0) {
100 // Add "hi" (if different from last value).
101 if (hi != dst->back()) {
102 dst->push_back(hi);