| 16 | |
| 17 | namespace { |
| 18 | inline 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 | } |
| 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__) |
no outgoing calls
no test coverage detected