Skip to content

Commit

Permalink
Update includes to work properly on ARM
Browse files Browse the repository at this point in the history
Include simde on aarch64 rather than ximmintrin etc... directly
Alternately you could just include the rack.hpp but this seems
a bit lower level than that.

Closes Coirt#39
  • Loading branch information
baconpaul committed Dec 31, 2023
1 parent ee3db28 commit de35d36
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/dependancies/utility/fasttrigo.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,18 @@
#include <QtGui>
#endif
//#include <intrin.h>
#if defined(__SSE2__) || defined(_M_AMD64) || defined(_M_X64) || \
(defined(_M_IX86_FP) && _M_IX86_FP >= 2)
#include <xmmintrin.h>
#include <pmmintrin.h>
#else
#if defined(__arm__) || defined(__aarch64__) || defined(__riscv)
#define SIMDE_ENABLE_NATIVE_ALIASES
#include "simde/x86/sse2.h"
#else
#error Bark requires either X86/SSE2 or ARM architectures.
#endif
#endif

//Default accuracy
namespace FT {
Expand Down

0 comments on commit de35d36

Please sign in to comment.