MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / align_up

Function align_up

cranelift/jit/src/memory/arena.rs:9–12  ·  view source on GitHub ↗
(addr: usize, align: usize)

Source from the content-addressed store, hash-verified

7use super::{BranchProtection, JITMemoryKind, JITMemoryProvider};
8
9fn align_up(addr: usize, align: usize) -> usize {
10 debug_assert!(align.is_power_of_two());
11 (addr + align - 1) & !(align - 1)
12}
13
14#[derive(Debug)]
15struct Segment {

Callers 5

allocateMethod · 0.70
has_space_forMethod · 0.70
new_with_sizeMethod · 0.70
allocate_innerMethod · 0.70
allocate_segmentMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected