Go to the source code of this file.
|
template<typename S , typename T > |
constexpr auto | DIV_CEIL (S val, T m) -> decltype((val+m - 1)/m) |
| Calculate the rounded up quotient of val / m. More...
|
|
template<typename S , typename T > |
auto | ceil_to_multiple (S value, T divisor) -> decltype(((value+divisor - 1)/divisor) *divisor) |
| Computes the smallest number larger or equal to value that is a multiple of divisor. More...
|
|
template<typename S , typename T > |
auto | floor_to_multiple (S value, T divisor) -> decltype((value/divisor) *divisor) |
| Computes the largest number smaller or equal to value that is a multiple of divisor. More...
|
|