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

Method visit_f64_ceil

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

Source from the content-addressed store, hash-verified

842 }
843
844 fn visit_f64_ceil(&mut self) -> Self::Output {
845 self.masm.float_round(
846 RoundingMode::Up,
847 &mut self.env,
848 &mut self.context,
849 OperandSize::S64,
850 |env, cx, masm| {
851 let builtin = env.builtins.ceil_f64::<M::ABI>()?;
852 FnCall::emit::<M>(env, masm, cx, Callee::Builtin(builtin))
853 },
854 )?;
855 let result = self.context.pop_to_reg(self.masm, None)?;
856 self.masm
857 .maybe_canonicalize_nan(writable!(result.into()), OperandSize::S64)?;
858 self.context.stack.push(result.into());
859 Ok(())
860 }
861
862 fn visit_f32_nearest(&mut self) -> Self::Output {
863 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