mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed NEON detection on arm64 CPUs
This probably breaks RISCOS, but we need a better fix from Cameron Cawley for this
This commit is contained in:
parent
c14a59d999
commit
196f69984a
@ -338,7 +338,7 @@ CPU_haveAltiVec(void)
|
|||||||
return altivec;
|
return altivec;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(__arm__)
|
#if !defined(__ARM_ARCH)
|
||||||
static int
|
static int
|
||||||
CPU_haveARMSIMD(void)
|
CPU_haveARMSIMD(void)
|
||||||
{
|
{
|
||||||
@ -445,7 +445,7 @@ CPU_haveNEON(void)
|
|||||||
# endif
|
# endif
|
||||||
/* All WinRT ARM devices are required to support NEON, but just in case. */
|
/* All WinRT ARM devices are required to support NEON, but just in case. */
|
||||||
return IsProcessorFeaturePresent(PF_ARM_NEON_INSTRUCTIONS_AVAILABLE) != 0;
|
return IsProcessorFeaturePresent(PF_ARM_NEON_INSTRUCTIONS_AVAILABLE) != 0;
|
||||||
#elif !defined(__arm__)
|
#elif !defined(__ARM_ARCH)
|
||||||
return 0; /* not an ARM CPU at all. */
|
return 0; /* not an ARM CPU at all. */
|
||||||
#elif __ARM_ARCH >= 8
|
#elif __ARM_ARCH >= 8
|
||||||
return 1; /* ARMv8 always has non-optional NEON support. */
|
return 1; /* ARMv8 always has non-optional NEON support. */
|
||||||
|
Loading…
Reference in New Issue
Block a user