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

Method xadd64

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

Source from the content-addressed store, hash-verified

1716 }
1717
1718 fn xadd64(&mut self, operands: BinaryOperands<XReg>) -> ControlFlow<Done> {
1719 let a = self.state[operands.src1].get_u64();
1720 let b = self.state[operands.src2].get_u64();
1721 self.state[operands.dst].set_u64(a.wrapping_add(b));
1722 ControlFlow::Continue(())
1723 }
1724
1725 fn xadd64_u8(&mut self, dst: XReg, src1: XReg, src2: u8) -> ControlFlow<Done> {
1726 self.xadd64_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