mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
cpuinfo: patched to compile for getauxval() path.
This commit is contained in:
parent
0b33a1188b
commit
32cb34945e
@ -341,7 +341,7 @@ CPU_haveNEON(void)
|
|||||||
const int error = sysctlbyname("hw.optional.neon", &neon, &length, NULL, 0);
|
const int error = sysctlbyname("hw.optional.neon", &neon, &length, NULL, 0);
|
||||||
return (!error) && (neon != 0);
|
return (!error) && (neon != 0);
|
||||||
#elif (defined(__LINUX__) || defined(__ANDROID__)) && defined(HAVE_GETAUXVAL)
|
#elif (defined(__LINUX__) || defined(__ANDROID__)) && defined(HAVE_GETAUXVAL)
|
||||||
return ((getauxval(AT_HWCAP) & HWCAP_NEON) == HWCAP_NEON)
|
return ((getauxval(AT_HWCAP) & HWCAP_NEON) == HWCAP_NEON);
|
||||||
#elif (defined(__LINUX__) || defined(__ANDROID__))
|
#elif (defined(__LINUX__) || defined(__ANDROID__))
|
||||||
return readProcAuxvForNeon(); /* Android offers a static library for this, but it just parses /proc/self/auxv */
|
return readProcAuxvForNeon(); /* Android offers a static library for this, but it just parses /proc/self/auxv */
|
||||||
#elif (defined(__WINDOWS__) || defined(__WINRT__)) && defined(_M_ARM)
|
#elif (defined(__WINDOWS__) || defined(__WINRT__)) && defined(_M_ARM)
|
||||||
|
Loading…
Reference in New Issue
Block a user