| 447 | // then multiplying by the divisor. For example: RoundUpToNearest(13, 8) => 16 |
| 448 | template <typename T> |
| 449 | T RoundUpToNearest(T value, T divisor) { |
| 450 | return CeilOfRatio(value, divisor) * divisor; |
| 451 | } |
| 452 | |
| 453 | // Rounds the value down to a multiple of the divisor by first calling |
| 454 | // FloorOfRatio then multiplying by the divisor. For example: |
no test coverage detected