mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-03 08:21:04 +00:00
4 lines
93 B
Rust
4 lines
93 B
Rust
pub fn round_up_to_page_size(size: usize) -> usize {
|
|
(size + (4096 - 1)) & !(4096 - 1)
|
|
}
|