diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-10-19 19:04:40 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-11-11 20:43:28 +0100 |
commit | 2b479bcab0a8365a7c094c5fa44b8cb6da9810d0 (patch) | |
tree | c29a12f0a7c4c1a2c12380d9d9479ef958668073 /libavcodec | |
parent | b8e8a07c6c4df93de92480f5c3a14296a6a2a690 (diff) | |
download | ffmpeg-2b479bcab0a8365a7c094c5fa44b8cb6da9810d0.tar.gz |
build: Drop AVX assembly ifdefs
An assembler able to cope with AVX instructions is now required.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/x86/dct32.asm | 2 | ||||
-rw-r--r-- | libavcodec/x86/dsputil.asm | 6 | ||||
-rw-r--r-- | libavcodec/x86/fft.asm | 9 | ||||
-rw-r--r-- | libavcodec/x86/h264_chromamc_10bit.asm | 4 | ||||
-rw-r--r-- | libavcodec/x86/h264_idct_10bit.asm | 16 | ||||
-rw-r--r-- | libavcodec/x86/h264_intrapred_10bit.asm | 26 |
6 files changed, 0 insertions, 63 deletions
diff --git a/libavcodec/x86/dct32.asm b/libavcodec/x86/dct32.asm index 25bc8f752d..9c147b9c00 100644 --- a/libavcodec/x86/dct32.asm +++ b/libavcodec/x86/dct32.asm @@ -192,7 +192,6 @@ ps_p1p1m1m1: dd 0, 0, 0x80000000, 0x80000000, 0, 0, 0x80000000, 0x80000000 INIT_YMM avx SECTION_TEXT -%if HAVE_AVX_EXTERNAL ; void ff_dct32_float_avx(FFTSample *out, const FFTSample *in) cglobal dct32_float, 2,3,8, out, in, tmp ; pass 1 @@ -265,7 +264,6 @@ cglobal dct32_float, 2,3,8, out, in, tmp INIT_XMM PASS6_AND_PERMUTE RET -%endif %if ARCH_X86_64 %define SPILL SWAP diff --git a/libavcodec/x86/dsputil.asm b/libavcodec/x86/dsputil.asm index 0ed64aa458..c9118a1c8c 100644 --- a/libavcodec/x86/dsputil.asm +++ b/libavcodec/x86/dsputil.asm @@ -1168,10 +1168,8 @@ ALIGN 16 INIT_XMM sse VECTOR_FMUL_REVERSE -%if HAVE_AVX_EXTERNAL INIT_YMM avx VECTOR_FMUL_REVERSE -%endif ;----------------------------------------------------------------------------- ; vector_fmul_add(float *dst, const float *src0, const float *src1, @@ -1198,10 +1196,8 @@ ALIGN 16 INIT_XMM sse VECTOR_FMUL_ADD -%if HAVE_AVX_EXTERNAL INIT_YMM avx VECTOR_FMUL_ADD -%endif ;----------------------------------------------------------------------------- ; void ff_butterflies_float_interleave(float *dst, const float *src0, @@ -1244,10 +1240,8 @@ cglobal butterflies_float_interleave, 4,4,3, dst, src0, src1, len INIT_XMM sse BUTTERFLIES_FLOAT_INTERLEAVE -%if HAVE_AVX_EXTERNAL INIT_YMM avx BUTTERFLIES_FLOAT_INTERLEAVE -%endif INIT_XMM sse2 ; %1 = aligned/unaligned diff --git a/libavcodec/x86/fft.asm b/libavcodec/x86/fft.asm index 111f3229b4..c87752bae8 100644 --- a/libavcodec/x86/fft.asm +++ b/libavcodec/x86/fft.asm @@ -305,7 +305,6 @@ IF%1 mova Z(1), m5 INIT_YMM avx -%if HAVE_AVX_EXTERNAL align 16 fft8_avx: mova m0, Z(0) @@ -394,7 +393,6 @@ fft32_interleave_avx: sub r2d, mmsize/4 jg .deint_loop ret -%endif INIT_XMM sse @@ -539,7 +537,6 @@ DEFINE_ARGS zc, w, n, o1, o3 INIT_YMM avx -%if HAVE_AVX_EXTERNAL %macro INTERL_AVX 5 vunpckhps %3, %2, %1 vunpcklps %2, %2, %1 @@ -561,7 +558,6 @@ cglobal fft_calc, 2,5,8 FFT_DISPATCH _interleave %+ SUFFIX, r1 REP_RET -%endif INIT_XMM sse @@ -780,11 +776,9 @@ align 8 dispatch_tab %+ fullsuffix: pointer list_of_fft %endmacro ; DECL_FFT -%if HAVE_AVX_EXTERNAL INIT_YMM avx DECL_FFT 6 DECL_FFT 6, _interleave -%endif INIT_XMM sse DECL_FFT 5 DECL_FFT 5, _interleave @@ -1086,7 +1080,4 @@ DECL_IMDCT POSROTATESHUF_3DNOW %endif INIT_YMM avx - -%if HAVE_AVX_EXTERNAL DECL_IMDCT POSROTATESHUF_AVX -%endif diff --git a/libavcodec/x86/h264_chromamc_10bit.asm b/libavcodec/x86/h264_chromamc_10bit.asm index d24308d254..261973749c 100644 --- a/libavcodec/x86/h264_chromamc_10bit.asm +++ b/libavcodec/x86/h264_chromamc_10bit.asm @@ -251,10 +251,8 @@ cglobal %1_h264_chroma_mc2_10, 6,7 %define CHROMAMC_AVG NOTHING INIT_XMM sse2 CHROMA_MC8 put -%if HAVE_AVX_EXTERNAL INIT_XMM avx CHROMA_MC8 put -%endif INIT_MMX mmx2 CHROMA_MC4 put CHROMA_MC2 put @@ -262,10 +260,8 @@ CHROMA_MC2 put %define CHROMAMC_AVG AVG INIT_XMM sse2 CHROMA_MC8 avg -%if HAVE_AVX_EXTERNAL INIT_XMM avx CHROMA_MC8 avg -%endif INIT_MMX mmx2 CHROMA_MC4 avg CHROMA_MC2 avg diff --git a/libavcodec/x86/h264_idct_10bit.asm b/libavcodec/x86/h264_idct_10bit.asm index 5ba241b3f3..b3b7df9393 100644 --- a/libavcodec/x86/h264_idct_10bit.asm +++ b/libavcodec/x86/h264_idct_10bit.asm @@ -79,10 +79,8 @@ cglobal h264_idct_add_10, 3,3 INIT_XMM sse2 IDCT_ADD_10 -%if HAVE_AVX_EXTERNAL INIT_XMM avx IDCT_ADD_10 -%endif ;----------------------------------------------------------------------------- ; h264_idct_add16(pixel *dst, const int *block_offset, dctcoef *block, int stride, const uint8_t nnzc[6*8]) @@ -109,11 +107,9 @@ add4x4_idct %+ SUFFIX: INIT_XMM sse2 ALIGN 16 ADD4x4IDCT -%if HAVE_AVX_EXTERNAL INIT_XMM avx ALIGN 16 ADD4x4IDCT -%endif %macro ADD16_OP 2 cmp byte [r4+%2], 0 @@ -149,10 +145,8 @@ cglobal h264_idct_add16_10, 5,6 INIT_XMM sse2 IDCT_ADD16_10 -%if HAVE_AVX_EXTERNAL INIT_XMM avx IDCT_ADD16_10 -%endif ;----------------------------------------------------------------------------- ; void h264_idct_dc_add(pixel *dst, dctcoef *block, int stride) @@ -215,10 +209,8 @@ cglobal h264_idct8_dc_add_10,3,3,7 INIT_XMM sse2 IDCT8_DC_ADD -%if HAVE_AVX_EXTERNAL INIT_XMM avx IDCT8_DC_ADD -%endif ;----------------------------------------------------------------------------- ; h264_idct_add16intra(pixel *dst, const int *block_offset, dctcoef *block, int stride, const uint8_t nnzc[6*8]) @@ -286,10 +278,8 @@ cglobal h264_idct_add16intra_10,5,7,8 INIT_XMM sse2 IDCT_ADD16INTRA_10 -%if HAVE_AVX_EXTERNAL INIT_XMM avx IDCT_ADD16INTRA_10 -%endif %assign last_block 36 ;----------------------------------------------------------------------------- @@ -323,10 +313,8 @@ cglobal h264_idct_add8_10,5,8,7 INIT_XMM sse2 IDCT_ADD8 -%if HAVE_AVX_EXTERNAL INIT_XMM avx IDCT_ADD8 -%endif ;----------------------------------------------------------------------------- ; void h264_idct8_add(pixel *dst, dctcoef *block, int stride) @@ -500,10 +488,8 @@ h264_idct8_add1_10 %+ SUFFIX: INIT_XMM sse2 IDCT8_ADD -%if HAVE_AVX_EXTERNAL INIT_XMM avx IDCT8_ADD -%endif ;----------------------------------------------------------------------------- ; h264_idct8_add4(pixel **dst, const int *block_offset, dctcoef *block, int stride, const uint8_t nnzc[6*8]) @@ -540,7 +526,5 @@ cglobal h264_idct8_add4_10, 0,7,16 INIT_XMM sse2 IDCT8_ADD4 -%if HAVE_AVX_EXTERNAL INIT_XMM avx IDCT8_ADD4 -%endif diff --git a/libavcodec/x86/h264_intrapred_10bit.asm b/libavcodec/x86/h264_intrapred_10bit.asm index 039af6d712..eae45ae335 100644 --- a/libavcodec/x86/h264_intrapred_10bit.asm +++ b/libavcodec/x86/h264_intrapred_10bit.asm @@ -82,10 +82,8 @@ INIT_XMM sse2 PRED4x4_DR INIT_XMM ssse3 PRED4x4_DR -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED4x4_DR -%endif ;----------------------------------------------------------------------------- ; void pred4x4_vertical_right(pixel *src, const pixel *topright, int stride) @@ -121,10 +119,8 @@ INIT_XMM sse2 PRED4x4_VR INIT_XMM ssse3 PRED4x4_VR -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED4x4_VR -%endif ;----------------------------------------------------------------------------- ; void pred4x4_horizontal_down(pixel *src, const pixel *topright, int stride) @@ -163,10 +159,8 @@ INIT_XMM sse2 PRED4x4_HD INIT_XMM ssse3 PRED4x4_HD -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED4x4_HD -%endif ;----------------------------------------------------------------------------- ; void pred4x4_dc(pixel *src, const pixel *topright, int stride) @@ -234,10 +228,8 @@ cglobal pred4x4_down_left_10, 3, 3 INIT_XMM sse2 PRED4x4_DL -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED4x4_DL -%endif ;----------------------------------------------------------------------------- ; void pred4x4_vertical_left(pixel *src, const pixel *topright, int stride) @@ -263,10 +255,8 @@ cglobal pred4x4_vertical_left_10, 3, 3 INIT_XMM sse2 PRED4x4_VL -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED4x4_VL -%endif ;----------------------------------------------------------------------------- ; void pred4x4_horizontal_up(pixel *src, const pixel *topright, int stride) @@ -573,10 +563,8 @@ cglobal pred8x8l_top_dc_10, 4, 4, 6 INIT_XMM sse2 PRED8x8L_TOP_DC -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED8x8L_TOP_DC -%endif ;----------------------------------------------------------------------------- ;void pred8x8l_dc(pixel *src, int has_topleft, int has_topright, int stride) @@ -632,10 +620,8 @@ cglobal pred8x8l_dc_10, 4, 6, 6 INIT_XMM sse2 PRED8x8L_DC -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED8x8L_DC -%endif ;----------------------------------------------------------------------------- ; void pred8x8l_vertical(pixel *src, int has_topleft, int has_topright, int stride) @@ -667,10 +653,8 @@ cglobal pred8x8l_vertical_10, 4, 4, 6 INIT_XMM sse2 PRED8x8L_VERTICAL -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED8x8L_VERTICAL -%endif ;----------------------------------------------------------------------------- ; void pred8x8l_horizontal(uint8_t *src, int has_topleft, int has_topright, int stride) @@ -723,10 +707,8 @@ INIT_XMM sse2 PRED8x8L_HORIZONTAL INIT_XMM ssse3 PRED8x8L_HORIZONTAL -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED8x8L_HORIZONTAL -%endif ;----------------------------------------------------------------------------- ;void pred8x8l_down_left(pixel *src, int has_topleft, int has_topright, int stride) @@ -791,10 +773,8 @@ INIT_XMM sse2 PRED8x8L_DOWN_LEFT INIT_XMM ssse3 PRED8x8L_DOWN_LEFT -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED8x8L_DOWN_LEFT -%endif ;----------------------------------------------------------------------------- ;void pred8x8l_down_right(pixel *src, int has_topleft, int has_topright, int stride) @@ -865,10 +845,8 @@ INIT_XMM sse2 PRED8x8L_DOWN_RIGHT INIT_XMM ssse3 PRED8x8L_DOWN_RIGHT -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED8x8L_DOWN_RIGHT -%endif ;----------------------------------------------------------------------------- ; void pred8x8l_vertical_right(pixel *src, int has_topleft, int has_topright, int stride) @@ -935,10 +913,8 @@ INIT_XMM sse2 PRED8x8L_VERTICAL_RIGHT INIT_XMM ssse3 PRED8x8L_VERTICAL_RIGHT -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED8x8L_VERTICAL_RIGHT -%endif ;----------------------------------------------------------------------------- ; void pred8x8l_horizontal_up(pixel *src, int has_topleft, int has_topright, int stride) @@ -996,10 +972,8 @@ INIT_XMM sse2 PRED8x8L_HORIZONTAL_UP INIT_XMM ssse3 PRED8x8L_HORIZONTAL_UP -%if HAVE_AVX_EXTERNAL INIT_XMM avx PRED8x8L_HORIZONTAL_UP -%endif ;----------------------------------------------------------------------------- |