kfrlib / kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
https://www.kfrlib.com
GNU General Public License v2.0
1.62k stars 248 forks source link

Enable the library to build against WebAssembly SIMD support #187

Closed jcelerier closed 5 months ago

jcelerier commented 11 months ago

On Emscripten, the SSE, etc... intrinsincs are available: https://emscripten.org/docs/porting/simd.html - it emulates the x86 SIMD API.

Run-time detection does not really make sense though as there's no cpuid and the available features are defined by the compile flags.

dancazarin commented 5 months ago

Thank you for the pull request. Merged it into dev. I've added basic cmake support for emscripten too for easy testing.

jcelerier commented 5 months ago

Thanks a lot!