You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
aarch64: Add Windows runtime detection of the dotprod instructions
For Windows, there's no publicly defined constant for checking for the i8mm extension yet. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -83,6 +83,18 @@ static int detect_flags(void)
|
||||
return flags;
|
||||
}
|
||||
|
||||
#elif defined(_WIN32)
|
||||
#include <windows.h>
|
||||
|
||||
static int detect_flags(void)
|
||||
{
|
||||
int flags = 0;
|
||||
#ifdef PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE
|
||||
if (IsProcessorFeaturePresent(PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE))
|
||||
flags |= AV_CPU_FLAG_DOTPROD;
|
||||
#endif
|
||||
return flags;
|
||||
}
|
||||
#else
|
||||
|
||||
static int detect_flags(void)
|
||||
|
Reference in New Issue
Block a user