Open cschol opened 1 year ago
@cschol - @pgatt had asked me about this in the fall. The following diff will fix this package and make it build on ARM.
@Coirt lemme know if you would prefer this as a PR.
diff --git a/src/dependancies/utility/fasttrigo.h b/src/dependancies/utility/fasttrigo.h
index 136be52..64cf4fd 100644
--- a/src/dependancies/utility/fasttrigo.h
+++ b/src/dependancies/utility/fasttrigo.h
@@ -43,8 +43,18 @@
#include <QtGui>
#endif
//#include <intrin.h>
+#if defined(__SSE2__) || defined(_M_AMD64) || defined(_M_X64) || \^M
+ (defined(_M_IX86_FP) && _M_IX86_FP >= 2)^M
#include <xmmintrin.h>
#include <pmmintrin.h>
+#else^M
+#if defined(__arm__) || defined(__aarch64__) || defined(__riscv)^M
+#define SIMDE_ENABLE_NATIVE_ALIASES^M
+#include "simde/x86/sse2.h"^M
+#else^M
+#error Bark requires either X86/SSE2 or ARM architectures.^M
+#endif^M
+#endif^M
//Default accuracy
namespace FT {
Added as a PR in #40 if that's easier for you.
Lots of issues related to simde instructions: