Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
24
template <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
31
template <class To, class From>
Callers
1
compare
Function · 0.70
Calls
1
assert
Function · 0.85
Tested by
no test coverage detected