Function alu [src]
Prototype
pub fn alu(comptime width: comptime_int, op: AluOp, dst: Reg, src: anytype) Insn
Parameters
width: comptime_int
op: AluOp
dst: Reg
Source
pub fn alu(comptime width: comptime_int, op: AluOp, dst: Reg, src: anytype) Insn {
const width_bitfield = switch (width) {
32 => ALU,
64 => ALU64,
else => @compileError("width must be 32 or 64"),
};
return imm_reg(width_bitfield | @intFromEnum(op), dst, src, 0);
}