Returns 'value' rounded up to the nearest multiple of 'factor'
| 86 | |
| 87 | // Returns 'value' rounded up to the nearest multiple of 'factor' |
| 88 | constexpr int64_t RoundUp(int64_t value, int64_t factor) { |
| 89 | return CeilDiv(value, factor) * factor; |
| 90 | } |
| 91 | |
| 92 | // Returns 'value' rounded down to the nearest multiple of 'factor' |
| 93 | constexpr int64_t RoundDown(int64_t value, int64_t factor) { |