MCPcopy Create free account
hub / github.com/apache/fory / AlignUp

Function AlignUp

javascript/packages/hps/src/fastcall.cc:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30template <typename T, typename U> constexpr T *AlignUp(T *ptr, U alignment) {
31 return reinterpret_cast<T *>(
32 RoundUp(reinterpret_cast<uintptr_t>(ptr), alignment));
33}
34
35uint32_t writeVarUint32(uint8_t *dst, uint32_t offset, int32_t value) {
36 if (value >> 7 == 0) {

Callers 1

writeUCS2Function · 0.85

Calls 1

RoundUpFunction · 0.85

Tested by

no test coverage detected