diff options
author | James Almer <jamrial@gmail.com> | 2014-02-22 04:54:01 +0000 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2014-02-23 15:29:36 +0100 |
commit | 1b932eb1508f550fac9e911923a0383efda53aa3 (patch) | |
tree | 1dadb7a0429d30648b3e22a7926bf8b1b03e4ac9 /configure | |
parent | 10b0161d78148f46eaffb29ea022378947eaef2c (diff) | |
download | ffmpeg-1b932eb1508f550fac9e911923a0383efda53aa3.tar.gz |
x86: add detection for FMA3 instruction set
Based on x264 code
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -271,6 +271,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 @@ -1254,6 +1255,7 @@ ARCH_EXT_LIST_X86=' avx2 cpunop xop + fma3 fma4 i686 mmx @@ -1578,6 +1580,7 @@ sse4_deps="ssse3" sse42_deps="sse4" avx_deps="sse42" xop_deps="avx" +fma3_deps="avx" fma4_deps="avx" avx2_deps="avx" @@ -3761,6 +3764,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 "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" || disable cpunop fi @@ -4294,6 +4298,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}" |