Skip to content

Commit

Permalink
[winpr,sysinfo] add additional neon check
Browse files Browse the repository at this point in the history
systems not explicitly handled in IsProcessorFeaturePresent now enable
NEON intrinsics if __ARM_NEON is defined.
Fixes #9746
  • Loading branch information
akallabeth committed Jan 9, 2024
1 parent f6a208f commit d05a844
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion winpr/libwinpr/sysinfo/sysinfo.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit d05a844

Please sign in to comment.