Function isAlignedLog2 [src]
Prototype
pub fn isAlignedLog2(addr: usize, log2_alignment: u8) bool
Parameters
addr: usize
log2_alignment: u8
Source
pub fn isAlignedLog2(addr: usize, log2_alignment: u8) bool {
return @ctz(addr) >= log2_alignment;
}