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

Method visit_f32_ceil

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

Source from the content-addressed store, hash-verified

824 }
825
826 fn visit_f32_ceil(&mut self) -> Self::Output {
827 self.masm.float_round(
828 RoundingMode::Up,
829 &mut self.env,
830 &mut self.context,
831 OperandSize::S32,
832 |env, cx, masm| {
833 let builtin = env.builtins.ceil_f32::<M::ABI>()?;
834 FnCall::emit::<M>(env, masm, cx, Callee::Builtin(builtin))
835 },
836 )?;
837 let result = self.context.pop_to_reg(self.masm, None)?;
838 self.masm
839 .maybe_canonicalize_nan(writable!(result.into()), OperandSize::S32)?;
840 self.context.stack.push(result.into());
841 Ok(())
842 }
843
844 fn visit_f64_ceil(&mut self) -> Self::Output {
845 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