Commit d816abea authored by Marc Marí's avatar Marc Marí
Browse files

Add __ARM64__ when checking for flags

parent ad61d016
#if defined(__ANDROID__) #if defined(__ARM__) || defined(__ARM64__)
#include "neon_mathfun.h" #include "neon_mathfun.h"
#else #else
#if !defined(__PNACL__) #if !defined(__PNACL__)
......
...@@ -93,7 +93,8 @@ static int getNumProcessors() { ...@@ -93,7 +93,8 @@ static int getNumProcessors() {
#ifdef WIN32 #ifdef WIN32
#define cpuid __cpuid #define cpuid __cpuid
#else #else
#if !defined(__ANDROID__) && !defined(__PNACL__) && !defined(__PPC__) #if !defined(__ANDROID__) && !defined(__PNACL__) && !defined(__PPC__) \
&& !defined(__ARM__) && !defined(__ARM64__)
static void cpuid(int cpuInfo[4], int infoType){ static void cpuid(int cpuInfo[4], int infoType){
#ifdef __LP64__ #ifdef __LP64__
__asm__ __volatile__ ( __asm__ __volatile__ (
......
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
* USE OR OTHER DEALINGS IN THE SOFTWARE. * * USE OR OTHER DEALINGS IN THE SOFTWARE. *
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#if defined(__ARM__) #if defined(__ARM__) || defined(__ARM64__)
#include "vectorize_neon.h" #include "vectorize_neon.h"
#elif defined(__PPC__) #elif defined(__PPC__)
#include "vectorize_ppc.h" #include "vectorize_ppc.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment