Mercurial
view third_party/emsdk/bazel/hello-world/hello-world-simd.cc @ 261:b401627fc49e
Add JRPG mock flows and interactive previews
Add scripted mock SSE commands, custom event forwarding, animated chat turns, full-height message navigation, and a cyberpunk resume dossier.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <mrjunejune@users.noreply.github.com> |
|---|---|
| date | Wed, 05 Aug 2026 20:38:32 -0700 |
| parents | 8d17f6e6e290 |
| children |
line wrap: on
line source
#include <wasm_simd128.h> void multiply_arrays(int* out, int* in_a, int* in_b, int size) { for (int i = 0; i < size; i += 4) { v128_t a = wasm_v128_load(&in_a[i]); v128_t b = wasm_v128_load(&in_b[i]); v128_t prod = wasm_i32x4_mul(a, b); wasm_v128_store(&out[i], prod); } }