(&mut self, operands: BinaryOperands<XReg>)
| 1699 | } |
| 1700 | |
| 1701 | fn xadd32(&mut self, operands: BinaryOperands<XReg>) -> ControlFlow<Done> { |
| 1702 | let a = self.state[operands.src1].get_u32(); |
| 1703 | let b = self.state[operands.src2].get_u32(); |
| 1704 | self.state[operands.dst].set_u32(a.wrapping_add(b)); |
| 1705 | ControlFlow::Continue(()) |
| 1706 | } |
| 1707 | |
| 1708 | fn xadd32_u8(&mut self, dst: XReg, src1: XReg, src2: u8) -> ControlFlow<Done> { |
| 1709 | self.xadd32_u32(dst, src1, src2.into()) |