| 34 | } |
| 35 | |
| 36 | constexpr size_t div_round_up(size_t val, size_t div) { |
| 37 | return (val / div) + static_cast<size_t>((val % div) != 0); |
| 38 | } |
| 39 | |
| 40 | constexpr size_t round_up_to_multiple(size_t val, size_t multiple_of) { |
| 41 | return multiple_of * (div_round_up(val, multiple_of)); |
no outgoing calls
no test coverage detected