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

Method xpopcnt32

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

Source from the content-addressed store, hash-verified

2457 }
2458
2459 fn xpopcnt32(&mut self, dst: XReg, src: XReg) -> ControlFlow<Done> {
2460 let a = self.state[src].get_u32();
2461 self.state[dst].set_u32(a.count_ones());
2462 ControlFlow::Continue(())
2463 }
2464
2465 fn xpopcnt64(&mut self, dst: XReg, src: XReg) -> ControlFlow<Done> {
2466 let a = self.state[src].get_u64();

Callers

nothing calls this directly

Calls 3

count_onesMethod · 0.80
get_u32Method · 0.45
set_u32Method · 0.45

Tested by

no test coverage detected