summaryrefslogtreecommitdiff
path: root/crates/types
diff options
context:
space:
mode:
Diffstat (limited to 'crates/types')
-rw-r--r--crates/types/src/value.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/types/src/value.rs b/crates/types/src/value.rs
index 2248c17..6c422d0 100644
--- a/crates/types/src/value.rs
+++ b/crates/types/src/value.rs
@@ -142,6 +142,11 @@ impl ValType {
WasmValue::default_for(*self)
}
+ #[inline]
+ pub fn is_simd(&self) -> bool {
+ matches!(self, ValType::V128)
+ }
+
pub(crate) fn to_byte(self) -> u8 {
match self {
ValType::I32 => 0x7F,