mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 21:47:44 +00:00
Initial rebase of xerpi's port
This commit is contained in:
committed by
Sam Lantinga
parent
bd06538778
commit
2d64e37e41
@@ -450,6 +450,8 @@ CPU_haveNEON(void)
|
||||
return IsProcessorFeaturePresent(PF_ARM_NEON_INSTRUCTIONS_AVAILABLE) != 0;
|
||||
#elif (defined(__ARM_ARCH) && (__ARM_ARCH >= 8)) || defined(__aarch64__)
|
||||
return 1; /* ARMv8 always has non-optional NEON support. */
|
||||
#elif __VITA__
|
||||
return 1;
|
||||
#elif defined(__APPLE__) && defined(__ARM_ARCH) && (__ARM_ARCH >= 7)
|
||||
/* (note that sysctlbyname("hw.optional.neon") doesn't work!) */
|
||||
return 1; /* all Apple ARMv7 chips and later have NEON. */
|
||||
|
||||
Reference in New Issue
Block a user