kernel::cheri

Function cram

Source
pub fn cram(_length: usize) -> usize
Expand description

CRAM: Returns a mask (all ones in the top end) that can be used to round bounds and lengths such that they can be represented. Both length, bottom, and top must be rounded using the mask.

Increasing length by rounding it up is guaranteed not to change the alignment requirement. Increasing length by any more may change the alignment requirement.