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

Method vsubi8x16_sat

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

Source from the content-addressed store, hash-verified

4570
4571 #[interp_disable_if_cfg(pulley_disable_interp_simd)]
4572 fn vsubi8x16_sat(&mut self, operands: BinaryOperands<VReg>) -> ControlFlow<Done> {
4573 let mut a = self.state[operands.src1].get_i8x16();
4574 let b = self.state[operands.src2].get_i8x16();
4575 for (a, b) in a.iter_mut().zip(b) {
4576 *a = a.saturating_sub(b);
4577 }
4578 self.state[operands.dst].set_i8x16(a);
4579 ControlFlow::Continue(())
4580 }
4581
4582 #[interp_disable_if_cfg(pulley_disable_interp_simd)]
4583 fn vsubu8x16_sat(&mut self, operands: BinaryOperands<VReg>) -> ControlFlow<Done> {

Callers

nothing calls this directly

Calls 4

get_i8x16Method · 0.80
saturating_subMethod · 0.80
set_i8x16Method · 0.80
iter_mutMethod · 0.45

Tested by

no test coverage detected