summaryrefslogtreecommitdiff
path: root/wasm2c/examples/fac/fac.h
diff options
context:
space:
mode:
Diffstat (limited to 'wasm2c/examples/fac/fac.h')
-rw-r--r--wasm2c/examples/fac/fac.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/wasm2c/examples/fac/fac.h b/wasm2c/examples/fac/fac.h
index 7700bc42..1354411a 100644
--- a/wasm2c/examples/fac/fac.h
+++ b/wasm2c/examples/fac/fac.h
@@ -6,6 +6,10 @@
#include "wasm-rt.h"
+#if defined(WASM_RT_ENABLE_SIMD)
+#include "simde/wasm/simd128.h"
+#endif
+
/* TODO(binji): only use stdint.h types in header */
#ifndef WASM_RT_CORE_TYPES_DEFINED
#define WASM_RT_CORE_TYPES_DEFINED
@@ -19,6 +23,11 @@ typedef uint64_t u64;
typedef int64_t s64;
typedef float f32;
typedef double f64;
+
+#if defined(WASM_RT_ENABLE_SIMD)
+typedef simde_v128_t v128;
+#endif
+
#endif
#ifdef __cplusplus