MCPcopy 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

24using v8::Value;
25
26template <typename T> constexpr T RoundUp(T a, T b) {
27 return a % b != 0 ? a + b - (a % b) : a;
28}
29
30template <typename T, typename U> constexpr T *AlignUp(T *ptr, U alignment) {
31 return reinterpret_cast<T *>(

Callers 1

AlignUpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected