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

Method x32_from_f64_s

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

Source from the content-addressed store, hash-verified

3368 }
3369
3370 fn x32_from_f64_s(&mut self, dst: XReg, src: FReg) -> ControlFlow<Done> {
3371 let a = self.state[src].get_f64();
3372 self.check_xnn_from_f64::<crate::X32FromF64S>(a, f64_cvt_to_int_bounds(true, 32))?;
3373 self.state[dst].set_i32(a as i32);
3374 ControlFlow::Continue(())
3375 }
3376
3377 fn x32_from_f64_u(&mut self, dst: XReg, src: FReg) -> ControlFlow<Done> {
3378 let a = self.state[src].get_f64();

Callers

nothing calls this directly

Calls 3

f64_cvt_to_int_boundsFunction · 0.85
set_i32Method · 0.80
get_f64Method · 0.45

Tested by

no test coverage detected