mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
9b0052200a
commit
c76643021e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue