Function alignForwardLog2 [src]

Prototype

pub fn alignForwardLog2(addr: usize, log2_alignment: u8) usize

Parameters

addr: usizelog2_alignment: u8

Source

pub fn alignForwardLog2(addr: usize, log2_alignment: u8) usize { const alignment = @as(usize, 1) << @as(math.Log2Int(usize), @intCast(log2_alignment)); return alignForward(usize, addr, alignment); }