Function TO_MASK [src]
Prototype
pub fn TO_MASK(cap: u8) u32
Parameters
cap: u8
Source
pub fn TO_MASK(cap: u8) u32 {
return @as(u32, 1) << @as(u5, @intCast(cap & 31));
}
pub fn TO_MASK(cap: u8) u32
cap: u8
pub fn TO_MASK(cap: u8) u32 {
return @as(u32, 1) << @as(u5, @intCast(cap & 31));
}