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

Method visit_f32_floor

winch/codegen/src/visitor.rs:790–806  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

788 }
789
790 fn visit_f32_floor(&mut self) -> Self::Output {
791 self.masm.float_round(
792 RoundingMode::Down,
793 &mut self.env,
794 &mut self.context,
795 OperandSize::S32,
796 |env, cx, masm| {
797 let builtin = env.builtins.floor_f32::<M::ABI>()?;
798 FnCall::emit::<M>(env, masm, cx, Callee::Builtin(builtin))
799 },
800 )?;
801 let result = self.context.pop_to_reg(self.masm, None)?;
802 self.masm
803 .maybe_canonicalize_nan(writable!(result.into()), OperandSize::S32)?;
804 self.context.stack.push(result.into());
805 Ok(())
806 }
807
808 fn visit_f64_floor(&mut self) -> Self::Output {
809 self.masm.float_round(

Callers

nothing calls this directly

Calls 5

OkFunction · 0.85
pop_to_regMethod · 0.80
float_roundMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected