We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5cc6d4 commit ded44b8Copy full SHA for ded44b8
1 file changed
crates/wasmparser/src/readers/core/operators.rs
@@ -295,6 +295,18 @@ impl From<V128> for u128 {
295
}
296
297
298
+impl From<i128> for V128 {
299
+ fn from(value: i128) -> Self {
300
+ V128(i128::to_le_bytes(value))
301
+ }
302
+}
303
+
304
+impl From<u128> for V128 {
305
+ fn from(value: u128) -> Self {
306
+ V128(u128::to_le_bytes(value))
307
308
309
310
/// Represents the memory ordering for atomic instructions.
311
///
312
/// For an in-depth explanation of memory orderings, see the C++ documentation
0 commit comments