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

Method xsub32

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

Source from the content-addressed store, hash-verified

1749 }
1750
1751 fn xsub32(&mut self, operands: BinaryOperands<XReg>) -> ControlFlow<Done> {
1752 let a = self.state[operands.src1].get_u32();
1753 let b = self.state[operands.src2].get_u32();
1754 self.state[operands.dst].set_u32(a.wrapping_sub(b));
1755 ControlFlow::Continue(())
1756 }
1757
1758 fn xsub32_u8(&mut self, dst: XReg, src1: XReg, src2: u8) -> ControlFlow<Done> {
1759 self.xsub32_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