MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / xadd32

Method xadd32

pulley/src/interp.rs:1701–1706  ·  view source on GitHub ↗
(&mut self, operands: BinaryOperands<XReg>)

Source from the content-addressed store, hash-verified

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())

Callers

nothing calls this directly

Calls 2

get_u32Method · 0.45
set_u32Method · 0.45

Tested by

no test coverage detected