MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / ceil_div

Function ceil_div

tests/ktxdiff/ktxdiff_main.cpp:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24template <typename T>
25[[nodiscard]] constexpr inline T ceil_div(const T x, const T y) noexcept {
26 assert(y != 0);
27 return (x + y - 1) / y;
28}
29
30// C++20 - std::bit_cast
31template <class To, class From>

Callers 1

compareFunction · 0.70

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected