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

Method xsub64

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

Source from the content-addressed store, hash-verified

1766 }
1767
1768 fn xsub64(&mut self, operands: BinaryOperands<XReg>) -> ControlFlow<Done> {
1769 let a = self.state[operands.src1].get_u64();
1770 let b = self.state[operands.src2].get_u64();
1771 self.state[operands.dst].set_u64(a.wrapping_sub(b));
1772 ControlFlow::Continue(())
1773 }
1774
1775 fn xsub64_u8(&mut self, dst: XReg, src1: XReg, src2: u8) -> ControlFlow<Done> {
1776 self.xsub64_u32(dst, src1, src2.into())

Callers

nothing calls this directly

Calls 2

get_u64Method · 0.45
set_u64Method · 0.45

Tested by

no test coverage detected