tlx
div_ceil.hpp File Reference

Go to the source code of this file.

Namespaces

 tlx
 

Functions

template<typename IntegralN , typename IntegralK >
static constexpr auto div_ceil (const IntegralN &n, const IntegralK &k) -> decltype(n+k)
 calculate n div k with rounding up, for n and k positive! More...