Skip to main content

round_up

Function round_up 

Source
pub const fn round_up(n: usize, align: usize) -> usize
Expand description

Round n up to a multiple of align, which must be a power of two.