FigBug / Gin

A few extras for juce
BSD 3-Clause "New" or "Revised" License
262 stars 40 forks source link

Set `GIN_HAS_SIMD` to 1 only on supported architectures #44

Closed taylordotfish closed 9 months ago

taylordotfish commented 9 months ago

MIPP only supports x86 and ARM, but GIN_HAS_SIMD is defined as 1 on other architectures as well, like PowerPC. This leads to compilation errors: for example, gin_bandlimitedlookuptable.h asserts mipp::N<float>() == 4, but mipp::N() unconditionally returns 1 on any architecture besides x86 and ARM.

This PR ensures GIN_HAS_SIMD is 0 on architectures that don't support SIMD.