(&mut self)
| 860 | } |
| 861 | |
| 862 | fn visit_f32_nearest(&mut self) -> Self::Output { |
| 863 | self.masm.float_round( |
| 864 | RoundingMode::Nearest, |
| 865 | &mut self.env, |
| 866 | &mut self.context, |
| 867 | OperandSize::S32, |
| 868 | |env, cx, masm| { |
| 869 | let builtin = env.builtins.nearest_f32::<M::ABI>()?; |
| 870 | FnCall::emit::<M>(env, masm, cx, Callee::Builtin(builtin)) |
| 871 | }, |
| 872 | )?; |
| 873 | let result = self.context.pop_to_reg(self.masm, None)?; |
| 874 | self.masm |
| 875 | .maybe_canonicalize_nan(writable!(result.into()), OperandSize::S32)?; |
| 876 | self.context.stack.push(result.into()); |
| 877 | Ok(()) |
| 878 | } |
| 879 | |
| 880 | fn visit_f64_nearest(&mut self) -> Self::Output { |
| 881 | self.masm.float_round( |
nothing calls this directly
no test coverage detected