Skip to content

Commit 63e33a2

Browse files
chore: refactor simd code in preparation for x86 intrinsics
Signed-off-by: Henry <mail@henrygressmann.de>
1 parent 7d4dfd8 commit 63e33a2

9 files changed

Lines changed: 1915 additions & 1425 deletions

File tree

crates/tinywasm/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ canonicalize_nans=[]
5151
# derive Debug for runtime/types structs
5252
debug=["tinywasm-types/debug"]
5353

54+
# enable x86-specific SIMD intrinsics in Value128
55+
# note: for x86 backend selection, compile with x86-64-v3 target features
56+
# (for example: `RUSTFLAGS="-C target-cpu=x86-64-v3"`)
57+
simd-x86=[]
58+
5459
[[test]]
5560
name="test-wasm-1"
5661
harness=false

crates/tinywasm/src/interpreter/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
pub(crate) mod executor;
22
pub(crate) mod num_helpers;
3+
pub(crate) mod simd;
34
pub(crate) mod stack;
4-
pub(crate) mod value128;
55
pub(crate) mod values;
66

77
#[cfg(not(feature = "std"))]
88
mod no_std_floats;
99

1010
use crate::{Result, Store, interpreter::stack::CallFrame};
11-
pub(crate) use value128::*;
11+
pub(crate) use simd::*;
1212
pub(crate) use values::*;
1313

1414
#[derive(Clone)]

0 commit comments

Comments
 (0)