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

Method xclz32

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

Source from the content-addressed store, hash-verified

2445 }
2446
2447 fn xclz32(&mut self, dst: XReg, src: XReg) -> ControlFlow<Done> {
2448 let a = self.state[src].get_u32();
2449 self.state[dst].set_u32(a.leading_zeros());
2450 ControlFlow::Continue(())
2451 }
2452
2453 fn xclz64(&mut self, dst: XReg, src: XReg) -> ControlFlow<Done> {
2454 let a = self.state[src].get_u64();

Callers

nothing calls this directly

Calls 3

leading_zerosMethod · 0.80
get_u32Method · 0.45
set_u32Method · 0.45

Tested by

no test coverage detected