aboutsummaryrefslogtreecommitdiff
path: root/internal/detect_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal/detect_platform.h')
-rw-r--r--internal/detect_platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/detect_platform.h b/internal/detect_platform.h
index 6f06d19..7f0d78c 100644
--- a/internal/detect_platform.h
+++ b/internal/detect_platform.h
@@ -71,6 +71,11 @@
#define GEMMLOWP_X86
#endif
+// Detect WebAssembly SIMD.
+#if defined(__wasm_simd128__)
+#define GEMMLOWP_WASMSIMD
+#endif
+
// Some of our optimized paths use inline assembly and for
// now we don't bother enabling some other optimized paths using intrinddics
// where we can't use inline assembly paths.