(value: usize, align: usize)
| 175 | /// Round `value` up to the next multiple of `align` (which must be a power of two). |
| 176 | #[inline] |
| 177 | pub const fn round_up(value: usize, align: usize) -> usize { |
| 178 | (value + align - 1) & !(align - 1) |
| 179 | } |
| 180 | |
| 181 | /// Check if a value is aligned to the given alignment. |
| 182 | #[inline] |
no outgoing calls
no test coverage detected