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