(self)
| 82 | impl WasmFloat for f32 { |
| 83 | #[inline] |
| 84 | fn wasm_trunc(self) -> f32 { |
| 85 | if self.is_nan() { |
| 86 | return f32::NAN; |
| 87 | } |
| 88 | #[cfg(feature = "std")] |
| 89 | if !cfg!(windows) && !cfg!(target_arch = "riscv64") { |
| 90 | return self.trunc(); |
| 91 | } |
| 92 | libm::truncf(self) |
| 93 | } |
| 94 | #[inline] |
| 95 | fn wasm_copysign(self, sign: f32) -> f32 { |
| 96 | #[cfg(feature = "std")] |
no test coverage detected