mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
x86: add missing XOP checks and macros
Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8e41240047
commit
6c12b1de06
5
configure
vendored
5
configure
vendored
@ -321,6 +321,7 @@ Optimization options (experts only):
|
||||
--disable-sse4 disable SSE4 optimizations
|
||||
--disable-sse42 disable SSE4.2 optimizations
|
||||
--disable-avx disable AVX optimizations
|
||||
--disable-xop disable XOP optimizations
|
||||
--disable-fma4 disable FMA4 optimizations
|
||||
--disable-avx2 disable AVX2 optimizations
|
||||
--disable-armv5te disable armv5te optimizations
|
||||
@ -1451,6 +1452,7 @@ ARCH_EXT_LIST_X86='
|
||||
amd3dnowext
|
||||
avx
|
||||
avx2
|
||||
xop
|
||||
fma4
|
||||
i686
|
||||
mmx
|
||||
@ -1823,6 +1825,7 @@ ssse3_deps="sse3"
|
||||
sse4_deps="ssse3"
|
||||
sse42_deps="sse4"
|
||||
avx_deps="sse42"
|
||||
xop_deps="avx"
|
||||
fma4_deps="avx"
|
||||
avx2_deps="avx"
|
||||
|
||||
@ -4233,6 +4236,7 @@ EOF
|
||||
check_yasm "movbe ecx, [5]" && enable yasm ||
|
||||
die "yasm/nasm not found or too old. Use --disable-yasm for a crippled build."
|
||||
check_yasm "vextractf128 xmm0, ymm0, 0" || disable avx_external avresample
|
||||
check_yasm "vpmacsdd xmm0, xmm1, xmm2, xmm3" || disable xop_external
|
||||
check_yasm "vfmaddps ymm0, ymm1, ymm2, ymm3" || disable fma4_external
|
||||
check_yasm "CPU amdnop" && enable cpunop
|
||||
fi
|
||||
@ -4913,6 +4917,7 @@ if enabled x86; then
|
||||
echo "SSE enabled ${sse-no}"
|
||||
echo "SSSE3 enabled ${ssse3-no}"
|
||||
echo "AVX enabled ${avx-no}"
|
||||
echo "XOP enabled ${xop-no}"
|
||||
echo "FMA4 enabled ${fma4-no}"
|
||||
echo "i686 features enabled ${i686-no}"
|
||||
echo "CMOV is fast ${fast_cmov-no}"
|
||||
|
@ -37,6 +37,7 @@
|
||||
#define X86_SSE4(flags) CPUEXT(flags, SSE4)
|
||||
#define X86_SSE42(flags) CPUEXT(flags, SSE42)
|
||||
#define X86_AVX(flags) CPUEXT(flags, AVX)
|
||||
#define X86_XOP(flags) CPUEXT(flags, XOP)
|
||||
#define X86_FMA4(flags) CPUEXT(flags, FMA4)
|
||||
#define X86_AVX2(flags) CPUEXT(flags, AVX2)
|
||||
|
||||
@ -51,6 +52,7 @@
|
||||
#define EXTERNAL_SSE4(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, SSE4)
|
||||
#define EXTERNAL_SSE42(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, SSE42)
|
||||
#define EXTERNAL_AVX(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, AVX)
|
||||
#define EXTERNAL_XOP(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, XOP)
|
||||
#define EXTERNAL_FMA4(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, FMA4)
|
||||
#define EXTERNAL_AVX2(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, AVX2)
|
||||
|
||||
@ -65,6 +67,7 @@
|
||||
#define INLINE_SSE4(flags) CPUEXT_SUFFIX(flags, _INLINE, SSE4)
|
||||
#define INLINE_SSE42(flags) CPUEXT_SUFFIX(flags, _INLINE, SSE42)
|
||||
#define INLINE_AVX(flags) CPUEXT_SUFFIX(flags, _INLINE, AVX)
|
||||
#define INLINE_XOP(flags) CPUEXT_SUFFIX(flags, _INLINE, XOP)
|
||||
#define INLINE_FMA4(flags) CPUEXT_SUFFIX(flags, _INLINE, FMA4)
|
||||
#define INLINE_AVX2(flags) CPUEXT_SUFFIX(flags, _INLINE, AVX2)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user