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

Method x32_from_f32_s

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

Source from the content-addressed store, hash-verified

3340 }
3341
3342 fn x32_from_f32_s(&mut self, dst: XReg, src: FReg) -> ControlFlow<Done> {
3343 let a = self.state[src].get_f32();
3344 self.check_xnn_from_f32::<crate::X32FromF32S>(a, f32_cvt_to_int_bounds(true, 32))?;
3345 self.state[dst].set_i32(a as i32);
3346 ControlFlow::Continue(())
3347 }
3348
3349 fn x32_from_f32_u(&mut self, dst: XReg, src: FReg) -> ControlFlow<Done> {
3350 let a = self.state[src].get_f32();

Callers

nothing calls this directly

Calls 3

f32_cvt_to_int_boundsFunction · 0.85
set_i32Method · 0.80
get_f32Method · 0.45

Tested by

no test coverage detected