| /wasmtime-44.0.1/crates/wasmtime/src/runtime/wave/ |
| H A D | component.rs | 31 Self::Float32 => WasmTypeKind::F32, in kind() 130 Self::Float32(_) => WasmTypeKind::F32, in kind() 166 Self::Float32(val) in make_f32() 251 let val = *unwrap_val!(self, Self::Float32, "f32"); in unwrap_f32() 436 (Val::Float32(1.5), "1.5"), in component_vals_smoke_test() 437 (Val::Float32(f32::NAN), "nan"), in component_vals_smoke_test() 438 (Val::Float32(f32::INFINITY), "inf"), in component_vals_smoke_test() 439 (Val::Float32(f32::NEG_INFINITY), "-inf"), in component_vals_smoke_test() 473 round_trip(&Type::Float32, &Val::Float32(i as f32 / j as f32)); in test_round_trip_floats() 478 round_trip(&Type::Float32, &Val::Float32(f32::EPSILON)); in test_round_trip_floats()
|
| /wasmtime-44.0.1/crates/test-util/src/ |
| H A D | component.rs | 46 pub struct Float32(pub f32); struct 99 Float32 => f32,
|
| H A D | component_fuzz.rs | 123 Float32, enumerator 173 9 => Type::Float32, in generate() 282 Type::Float32 => Kind::Primitive("f32.store"), in store_flat() 407 | Type::Float32 in store_flat_helper() 450 Type::Float32 => Kind::Primitive("f32.load"), in load_flat() 585 | Type::Float32 in load_flat_helper() 704 Type::Float32 => vec.push(CoreType::F32), in lower() 735 Type::S32 | Type::U32 | Type::Char | Type::Float32 => SizeAndAlignment { in size_and_alignment() 1192 Type::Float32 => quote!(Float32), in rust_type() 1366 Type::Float32 => dst.push_str("float32"), in write_ref() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/ |
| H A D | values.rs | 77 Float32(f32), enumerator 115 InterfaceType::Float32 => Val::Float32(f32::linear_lift_from_flat(cx, ty, next(src))?), in lift() 239 InterfaceType::Float32 => Val::Float32(f32::linear_lift_from_memory(cx, ty, bytes)?), in load() 400 (InterfaceType::Float32, Val::Float32(value)) => { in lower() 403 (InterfaceType::Float32, _) => unexpected(ty, self), in lower() 543 (InterfaceType::Float32, Val::Float32(value)) => { in store() 546 (InterfaceType::Float32, _) => unexpected(ty, self), in store() 689 Val::Float32(_) => "f32", in desc() 731 (Self::Float32(l), Self::Float32(r)) => { in eq() 736 (Self::Float32(_), _) => false, in eq()
|
| H A D | types.rs | 145 (InterfaceType::Float32, InterfaceType::Float32) => true, in interface_types_equal() 146 (InterfaceType::Float32, _) => false, in interface_types_equal() 718 Float32, enumerator 879 InterfaceType::Float32 => Type::Float32, in from() 912 Type::Float32 => "float32", in desc()
|
| /wasmtime-44.0.1/crates/wast/src/ |
| H A D | component.rs | 20 ComponentConst::F32(b) => Val::Float32(f32::from_bits(b.0)), in val() 101 Val::Float32(a) => { in match_val() 277 Val::Float32(..) => "f32", in mismatch()
|
| /wasmtime-44.0.1/fuzz/ |
| H A D | build.rs | 149 use wasmtime_test_util::component::{Float32, Float64}; in write_static_api_tests()
|
| /wasmtime-44.0.1/crates/fuzzing/src/oracles/ |
| H A D | component_api.rs | 47 Type::Float32 => Val::Float32(input.arbitrary()?), in arbitrary_val()
|
| /wasmtime-44.0.1/crates/c-api/src/component/ |
| H A D | val.rs | 297 wasmtime_component_val_t::F32(x) => Val::Float32(*x), in from() 336 Val::Float32(x) => wasmtime_component_val_t::F32(*x), in from()
|
| /wasmtime-44.0.1/tests/all/component_model/ |
| H A D | dynamic.rs | 27 Val::Float32(3.14159265), in primitives() 131 Val::Float32(3.14159265), in lists() 841 ("T".into(), Val::Float32(3.14159265)), in everything() 1185 assert_eq!(ty, types::Type::Float32); in introspection()
|
| H A D | func.rs | 1312 Val::Float32(input.2), in test_many_parameters() 1782 let Some(Val::Float32(p3)) = results.next() else { in test_many_results()
|
| /wasmtime-44.0.1/benches/ |
| H A D | call.rs | 524 component::Val::Float32(*self) in to_component_val() 801 results[0] = component::Val::Float32(0.0); in wasm_to_host()
|
| /wasmtime-44.0.1/crates/c-api/src/component/types/ |
| H A D | val.rs | 49 Type::Float32 => Self::F32, in from()
|
| /wasmtime-44.0.1/crates/environ/src/component/ |
| H A D | types.rs | 357 | InterfaceType::Float32 in canonical_abi() 592 Float32, enumerator
|
| H A D | types_builder.rs | 505 wasmparser::PrimitiveValType::F32 => Ok(InterfaceType::Float32), in primitive_type() 878 InterfaceType::Float32 => { in type_information()
|
| /wasmtime-44.0.1/crates/wasi-nn/src/backend/ |
| H A D | onnx.rs | 397 TensorElementType::Float32 => Ok(TensorType::Fp32), in try_from()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/func/ |
| H A D | typed.rs | 1305 f32/get_f32 = Float32 with abi:SCALAR4 3153 InterfaceType::Float32 => "f32", in desc()
|
| /wasmtime-44.0.1/crates/environ/src/fact/ |
| H A D | trampoline.rs | 1135 | InterfaceType::Float32 in translate() 1196 InterfaceType::Float32 => self.translate_f32(src, dst_ty, dst), in translate() 1517 assert!(matches!(dst_ty, InterfaceType::Float32)); in translate_f32()
|
| /wasmtime-44.0.1/crates/cranelift/src/compiler/ |
| H A D | component.rs | 881 | InterfaceType::Float32 in flat_stream_element_info()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/concurrent/ |
| H A D | futures_and_streams.rs | 4750 | InterfaceType::Float32 in allow_intra_component_read_write()
|