You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
Merge remote-tracking branch 'qatar/master'
* qatar/master:
x86: add detection for Bit Manipulation Instruction sets
Conflicts:
libavutil/x86/cpu.c
See: 0bc3de19ff
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -139,6 +139,7 @@ int ff_get_cpu_flags_x86(void)
|
|||||||
}
|
}
|
||||||
#endif /* HAVE_AVX */
|
#endif /* HAVE_AVX */
|
||||||
#endif /* HAVE_SSE */
|
#endif /* HAVE_SSE */
|
||||||
|
}
|
||||||
if (max_std_level >= 7) {
|
if (max_std_level >= 7) {
|
||||||
cpuid(7, eax, ebx, ecx, edx);
|
cpuid(7, eax, ebx, ecx, edx);
|
||||||
#if HAVE_AVX2
|
#if HAVE_AVX2
|
||||||
@ -146,14 +147,12 @@ int ff_get_cpu_flags_x86(void)
|
|||||||
rval |= AV_CPU_FLAG_AVX2;
|
rval |= AV_CPU_FLAG_AVX2;
|
||||||
#endif /* HAVE_AVX2 */
|
#endif /* HAVE_AVX2 */
|
||||||
/* BMI1/2 don't need OS support */
|
/* BMI1/2 don't need OS support */
|
||||||
if (ebx&0x00000008)
|
if (ebx & 0x00000008) {
|
||||||
{
|
|
||||||
rval |= AV_CPU_FLAG_BMI1;
|
rval |= AV_CPU_FLAG_BMI1;
|
||||||
if (ebx & 0x00000100)
|
if (ebx & 0x00000100)
|
||||||
rval |= AV_CPU_FLAG_BMI2;
|
rval |= AV_CPU_FLAG_BMI2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
cpuid(0x80000000, max_ext_level, ebx, ecx, edx);
|
cpuid(0x80000000, max_ext_level, ebx, ecx, edx);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user