| 816 | } |
| 817 | |
| 818 | trait FloatToken { |
| 819 | fn bits(&self) -> Bits; |
| 820 | fn canonical_nan() -> WasmValue; |
| 821 | fn arithmetic_nan() -> WasmValue; |
| 822 | fn value(&self) -> WasmValue { |
| 823 | match self.bits() { |
| 824 | Bits::U32(v) => WasmValue::F32(f32::from_bits(v)), |
| 825 | Bits::U64(v) => WasmValue::F64(f64::from_bits(v)), |
| 826 | } |
| 827 | } |
| 828 | } |
| 829 | |
| 830 | impl FloatToken for wast::token::F32 { |
| 831 | fn bits(&self) -> Bits { |
no outgoing calls
no test coverage detected