enable NEON intrinsics in aarch64 builds

avoids functions that use vtbl? as in iOS builds these are marked
unavailable

Change-Id: I17aedc3c7dc8f1d5be0941205de0b22c3772ef1b
This commit is contained in:
James Zern
2014-05-02 20:38:21 -07:00
parent b9d2bb67d6
commit 1ba61b09f9
4 changed files with 22 additions and 10 deletions

View File

@ -16,12 +16,16 @@
#include "./dsp.h"
// #define USE_INTRINSICS // use intrinsics when possible
// Right now, some intrinsics functions seem slower, so we disable them
// everywhere except aarch64 where the inline assembly is incompatible.
#if defined(__aarch64__)
#define USE_INTRINSICS // use intrinsics when possible
#endif
// if using intrinsics, this flag avoids some functions that make gcc-4.6.3
// crash ("internal compiler error: in immed_double_const, at emit-rtl.").
// (probably similar to gcc.gnu.org/bugzilla/show_bug.cgi?id=48183)
#if !LOCAL_GCC_PREREQ(4,8)
#if !(LOCAL_GCC_PREREQ(4,8) || defined(__aarch64__))
#define WORK_AROUND_GCC
#endif