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

Method visit_f64_floor

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

Source from the content-addressed store, hash-verified

806 }
807
808 fn visit_f64_floor(&mut self) -> Self::Output {
809 self.masm.float_round(
810 RoundingMode::Down,
811 &mut self.env,
812 &mut self.context,
813 OperandSize::S64,
814 |env, cx, masm| {
815 let builtin = env.builtins.floor_f64::<M::ABI>()?;
816 FnCall::emit::<M>(env, masm, cx, Callee::Builtin(builtin))
817 },
818 )?;
819 let result = self.context.pop_to_reg(self.masm, None)?;
820 self.masm
821 .maybe_canonicalize_nan(writable!(result.into()), OperandSize::S64)?;
822 self.context.stack.push(result.into());
823 Ok(())
824 }
825
826 fn visit_f32_ceil(&mut self) -> Self::Output {
827 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