simde
simde copied to clipboard
wasm fallback for _mm_alignr_epi8()?
Hi,
Could anyone help me to construct a wasm fallback for _mm_alignr_epi8() (using emscripten)?
I see from https://emscripten.org/docs/porting/simd.html that it can be "emulated with a SIMD or+two shifts". However, not being particularly versed in SIMD operations, I'm not sure how to translate this into actual code.
Any suggestions as to how to exactly emulate _mm_alignr_epi8() in wasm?