MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / FloatToken

Interface FloatToken

crates/cli/src/wast_runner.rs:818–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816}
817
818trait 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
830impl FloatToken for wast::token::F32 {
831 fn bits(&self) -> Bits {

Callers 1

nanpattern2tinywasmvalueFunction · 0.80

Implementers 1

wast_runner.rscrates/cli/src/wast_runner.rs

Calls

no outgoing calls

Tested by

no test coverage detected