Function check [src]
Return whether address is aligned to this amount.
Prototype
pub fn check(a: Alignment, address: usize) bool
Parameters
a: Alignment
address: usize
Source
pub fn check(a: Alignment, address: usize) bool {
return @ctz(address) >= @intFromEnum(a);
}