Function align_index
pub const fn align_index(align: usize, index: usize) -> usizeExpand description
Returns the least aligned index not smaller than index.
- Precondition:
alignis a power of two andindex + align - 1is representable.
ยงExamples
assert_eq!(cel_runtime::memory::align_index(8, 9), 16);