Skip to content

Commit

Permalink
cpuinfo: disable NEON detection on Android for now.
Browse files Browse the repository at this point in the history
Will fix this properly soon.
  • Loading branch information
icculus committed Nov 17, 2016
1 parent 5c6b2eb commit 66a36d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -50,9 +50,11 @@
#include <setjmp.h>
#endif

#if 0 /* !!! FIXME */
#if defined(__ANDROID__) && defined(__ARM_ARCH)
#include <cpu-features.h>
#endif
#endif

#if defined(__LINUX__) && defined(__ARM_ARCH) && HAVE_GETAUXVAL
#include <sys/auxv.h>
Expand Down Expand Up @@ -312,7 +314,7 @@ CPU_haveNEON(void)
const int error = sysctlbyname("hw.optional.neon", &neon, &length, NULL, 0);
if (!error)
neon = (neon != 0);
#elif defined(__ANDROID__) && defined(__ARM_ARCH)
#elif 0 && defined(__ANDROID__) && defined(__ARM_ARCH) /* !!! FIXME */
if ( (android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM) &&
((android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON) != 0) ) {
neon = 1;
Expand Down

0 comments on commit 66a36d5

Please sign in to comment.