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

Method vbitmask32x4

pulley/src/interp.rs:4190–4199  ·  view source on GitHub ↗
(&mut self, dst: XReg, src: VReg)

Source from the content-addressed store, hash-verified

4188
4189 #[interp_disable_if_cfg(pulley_disable_interp_simd)]
4190 fn vbitmask32x4(&mut self, dst: XReg, src: VReg) -> ControlFlow<Done> {
4191 let a = self.state[src].get_u32x4();
4192 let mut result = 0;
4193 for item in a.iter().rev() {
4194 result <<= 1;
4195 result |= *item >> 31;
4196 }
4197 self.state[dst].set_u32(result);
4198 ControlFlow::Continue(())
4199 }
4200
4201 #[interp_disable_if_cfg(pulley_disable_interp_simd)]
4202 fn vbitmask64x2(&mut self, dst: XReg, src: VReg) -> ControlFlow<Done> {

Callers

nothing calls this directly

Calls 3

get_u32x4Method · 0.80
iterMethod · 0.45
set_u32Method · 0.45

Tested by

no test coverage detected