MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / roundUpPageBoundary

Function roundUpPageBoundary

lib/loader/aot_section.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#endif
25}
26inline constexpr uint64_t roundUpPageBoundary(const uint64_t Value) {
27// ARM64 Mac has a special page size
28#if WASMEDGE_OS_MACOS && defined(__aarch64__)
29 return roundDownPageBoundary(Value + UINT64_C(16383));
30#else
31 return roundDownPageBoundary(Value + UINT64_C(4095));
32#endif
33}
34} // namespace
35
36namespace WasmEdge::Loader {

Callers 1

loadMethod · 0.85

Calls 1

roundDownPageBoundaryFunction · 0.85

Tested by

no test coverage detected