Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/fory
/ RoundUp
Function
RoundUp
javascript/packages/hps/src/fastcall.cc:26–28 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
24
using v8::Value;
25
26
template <typename T> constexpr T RoundUp(T a, T b) {
27
return a % b != 0 ? a + b - (a % b) : a;
28
}
29
30
template <typename T, typename U> constexpr T *AlignUp(T *ptr, U alignment) {
31
return reinterpret_cast<T *>(
Callers
1
AlignUp
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected