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

Function roundDownPageBoundary

lib/loader/aot_section.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17namespace {
18inline constexpr uint64_t roundDownPageBoundary(const uint64_t Value) {
19// ARM64 Mac has a special page size
20#if WASMEDGE_OS_MACOS && defined(__aarch64__)
21 return Value & ~UINT64_C(16383);
22#else
23 return Value & ~UINT64_C(4095);
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__)

Callers 2

roundUpPageBoundaryFunction · 0.85
loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected