Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodingGay/BlackDex
/ RoundUp
Function
RoundUp
Bcore/src/main/cpp/base/bit_utils.h:173–175 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
171
172
template<typename T>
173
constexpr T RoundUp(T x, typename std::remove_reference<T>::type n) {
174
return RoundDown(x + n - 1, n);
175
}
176
177
// For aligning pointers.
178
template<typename T>
Callers
3
GetTryItems
Method · 0.85
Build
Method · 0.85
AlignUp
Function · 0.85
Calls
1
RoundDown
Function · 0.85
Tested by
1
Build
Method · 0.68