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