From 78cdb555c57c33b7f331cb280ac2f615cb87fa74 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 9 Jan 2024 09:49:14 +0100 Subject: [PATCH] [winpr,sysinfo] add additional neon check systems not explicitly handled in IsProcessorFeaturePresent now enable NEON intrinsics if __ARM_NEON is defined. Fixes #9746 --- winpr/libwinpr/sysinfo/sysinfo.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/winpr/libwinpr/sysinfo/sysinfo.c b/winpr/libwinpr/sysinfo/sysinfo.c index dcbf700bb..9693ec4b7 100644 --- a/winpr/libwinpr/sysinfo/sysinfo.c +++ b/winpr/libwinpr/sysinfo/sysinfo.c @@ -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; }