diff options
author | James Almer <jamrial@gmail.com> | 2014-02-22 02:47:01 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-22 17:25:52 +0100 |
commit | a2af8eddab75f1eac712411e4dde89823c0845e8 (patch) | |
tree | f2ba681511f1d83bcac6fb75c45d187f81fde690 /configure | |
parent | f98821dddb4abb3764fc2f22a6afe3eb11292d3c (diff) | |
download | ffmpeg-a2af8eddab75f1eac712411e4dde89823c0845e8.tar.gz |
x86: add detection for FMA3 instruction set
Based on x264 code
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -323,6 +323,7 @@ Optimization options (experts only): --disable-sse42 disable SSE4.2 optimizations --disable-avx disable AVX optimizations --disable-xop disable XOP optimizations + --disable-fma3 disable FMA3 optimizations --disable-fma4 disable FMA4 optimizations --disable-avx2 disable AVX2 optimizations --disable-armv5te disable armv5te optimizations @@ -1455,6 +1456,7 @@ ARCH_EXT_LIST_X86=' avx avx2 cpunop + fma3 fma4 i686 mmx @@ -1828,6 +1830,7 @@ sse4_deps="ssse3" sse42_deps="sse4" avx_deps="sse42" xop_deps="avx" +fma3_deps="avx" fma4_deps="avx" avx2_deps="avx" @@ -4252,6 +4255,7 @@ EOF 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 "vfmadd132ps ymm0, ymm1, ymm2" || disable fma3_external check_yasm "vfmaddps ymm0, ymm1, ymm2, ymm3" || disable fma4_external check_yasm "CPU amdnop" && enable cpunop fi @@ -4937,6 +4941,7 @@ if enabled x86; then echo "SSSE3 enabled ${ssse3-no}" echo "AVX enabled ${avx-no}" echo "XOP enabled ${xop-no}" + echo "FMA3 enabled ${fma3-no}" echo "FMA4 enabled ${fma4-no}" echo "i686 features enabled ${i686-no}" echo "CMOV is fast ${fast_cmov-no}" |