Lines Matching defs:maxVal
72 : initialVal(initial_val), maxVal((1 << bits) - 1),
77 fatal_if(initial_val > maxVal,
83 : initialVal(other.initialVal), maxVal(other.maxVal),
101 maxVal = other.maxVal;
111 maxVal = other.maxVal;
129 std::swap(maxVal, other.maxVal);
137 if (counter < maxVal) {
184 if (this->counter > maxVal) {
185 this->counter = maxVal;
194 if (maxVal - this->counter >= value) {
197 this->counter = maxVal;
229 double calcSaturation() const { return (double) counter / maxVal; }
236 bool isSaturated() const { return counter == maxVal; }
245 const uint8_t diff = maxVal - counter;
246 counter = maxVal;
252 uint8_t maxVal;