align_up

Function align_up 

Source
pub const fn align_up(value: u64, alignment: u64) -> u64
Expand description

Align value up to the next multiple of alignment - compile-time constant.

ยงExamples

use chie_core::utils::align_up;
assert_eq!(align_up(10, 8), 16);
assert_eq!(align_up(16, 8), 16);