File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 7676#include <sys/param.h>
7777#endif
7878
79- #if defined(HAVE_GETAUXVAL ) || defined(HAVE_ELF_AUX_INFO )
79+ #if defined(HAVE_GETAUXVAL ) || defined(HAVE_ELF_AUX_INFO ) || defined( SDL_PLATFORM_ANDROID )
8080#include <sys/auxv.h>
8181#endif
8282
@@ -488,22 +488,10 @@ static int CPU_haveNEON(void)
488488 return 0 ;
489489 }
490490 return (hasneon & HWCAP_NEON ) == HWCAP_NEON ;
491- #elif (defined(SDL_PLATFORM_LINUX ) || defined(SDL_PLATFORM_ANDROID )) && defined(HAVE_GETAUXVAL )
491+ #elif (defined(SDL_PLATFORM_LINUX ) && defined(HAVE_GETAUXVAL )) || defined(SDL_PLATFORM_ANDROID )
492492 return (getauxval (AT_HWCAP ) & HWCAP_NEON ) == HWCAP_NEON ;
493493#elif defined(SDL_PLATFORM_LINUX )
494494 return readProcAuxvForNeon ();
495- #elif defined(SDL_PLATFORM_ANDROID )
496- // Use NDK cpufeatures to read either /proc/self/auxv or /proc/cpuinfo
497- {
498- AndroidCpuFamily cpu_family = android_getCpuFamily ();
499- if (cpu_family == ANDROID_CPU_FAMILY_ARM ) {
500- uint64_t cpu_features = android_getCpuFeatures ();
501- if (cpu_features & ANDROID_CPU_ARM_FEATURE_NEON ) {
502- return 1 ;
503- }
504- }
505- return 0 ;
506- }
507495#elif defined(SDL_PLATFORM_RISCOS )
508496 // Use the VFPSupport_Features SWI to access the MVFR registers
509497 {
You can’t perform that action at this time.
0 commit comments