[winpr,sysinfo] add additional neon check

systems not explicitly handled in IsProcessorFeaturePresent now enable
NEON intrinsics if __ARM_NEON is defined.
Fixes #9746
This commit is contained in:
akallabeth 2024-01-09 09:49:14 +01:00 committed by Martin Fleisz
parent 0e828bd657
commit 78cdb555c5

View File

@ -800,13 +800,17 @@ BOOL IsProcessorFeaturePresent(DWORD ProcessorFeature)
break;
}
#elif defined(__APPLE__) // __linux__
#else // __linux__
switch (ProcessorFeature)
{
case PF_ARM_NEON_INSTRUCTIONS_AVAILABLE:
case PF_ARM_NEON:
#ifdef __ARM_NEON
ret = TRUE;
#endif
break;
default:
break;
}