openvm_platform

Function align_up

Source
pub const fn align_up(addr: usize, align: usize) -> usize
Expand description

Align address upwards.

Returns the smallest x with alignment align so that x >= addr.

align must be a power of 2.