| 24 | #endif |
| 25 | } |
| 26 | inline 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 | |
| 36 | namespace WasmEdge::Loader { |
no test coverage detected