| 132 | } |
| 133 | |
| 134 | RangeValue RangeValue::divideAndRoundUp(const RangeValue& other) const { |
| 135 | |
| 136 | if (_isUnbound || other.isUnbound()) { |
| 137 | return *this / other; |
| 138 | } |
| 139 | else if (_val == 0) { |
| 140 | return RangeValue(0); |
| 141 | } |
| 142 | else { |
| 143 | return ((_val - 1) / other.value()) + 1; |
| 144 | } |
| 145 | |
| 146 | } |
| 147 | |
| 148 | RangeValue RangeValue::divideAndRoundUp(size_t other) const { |
| 149 | if (_isUnbound || other == 0) { |