commit 8f4d7dead63bbb594285218be0c7c56b04ec03dc parent d4a7d7ee02fa977d525e98fa1616bad97b9d2598 Author: d.levin256@gmail.com <d.levin256@gmail.com> Date: Tue, 20 Oct 2020 16:00:31 +0100 Clang 8.0 fix: disable for non-x86 Diffstat:
M | include/kfr/dft/impl/fft-impl.hpp | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/kfr/dft/impl/fft-impl.hpp b/include/kfr/dft/impl/fft-impl.hpp @@ -978,7 +978,7 @@ KFR_INTRINSIC void generate_real_twiddles(dft_plan_real<T>* self, size_t size) } template <typename T> -#if (defined CMT_ARCH_X32 && defined __clang__) && ((defined __APPLE__) || (__clang_major__ == 8)) +#if (defined CMT_ARCH_X32 && defined CMT_ARCH_X86 && defined __clang__) && ((defined __APPLE__) || (__clang_major__ == 8)) // Fix for Clang 8.0 bug (x32 with FMA instructions) // Xcode has different versions but x86 is very rare on macOS these days, // so disable inlining and FMA for x32 macOS and Clang 8.x