Function x86_64::addr::align_up

source ·
pub const fn align_up(addr: u64, align: u64) -> u64
Expand description

Align address upwards.

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

Panics if the alignment is not a power of two or if an overflow occurs.