| 91 | // |
| 92 | template <typename ArithmeticV, typename ArithmeticM> |
| 93 | constexpr ArithmeticV |
| 94 | ROUNDUP(ArithmeticV value, ArithmeticM m) |
| 95 | { |
| 96 | ArithmeticV remainder = value % m; |
| 97 | if (remainder) { |
| 98 | value += m - remainder; |
| 99 | } |
| 100 | return value; |
| 101 | } |
| 102 | #endif |
no outgoing calls
no test coverage detected