I'm trying to compile the PFFFT library (https://bitbucket.org/jpommier/) to WebAssembly using the -msse option to emulate the SSE intrinsics. Compilation works fine, but there's an alignment check that fails at runtime.
The alignment check macro that fails is:
# define VALIGNED(ptr) ((((long)(ptr)) & 0xF) == 0)
I'm a bit lost here ... does anyone have a hint on how to perform the alignment check with WASM SIMD, or whether it's even necessary ?
Best, n