[MPlayer-dev-eng] [PATCH 2/2] configure: Define HAVE_SIMD_ALIGN_32

Alexander Strasser eclipse7 at gmx.net
Mon Apr 3 02:04:42 EEST 2017


The define is used since FFmpeg commit 6c4665d.

Fixes part of ticket #2318

Signed-off-by: Alexander Strasser <eclipse7 at gmx.net>
---
 configure | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index fff44f5f1..2a09e0b75 100755
--- a/configure
+++ b/configure
@@ -869,6 +869,7 @@ def_stream_cache="#define CONFIG_STREAM_CACHE 1"
 def_path_max_check="#define CONFIG_PATH_MAX_CHECK 0"
 def_priority="#undef CONFIG_PRIORITY"
 def_pthread_cache="#undef PTHREAD_CACHE"
+def_simd_align_32='#define HAVE_SIMD_ALIGN_32 0'
 shmem=no
 
 option_value(){
@@ -2014,7 +2015,7 @@ EOF
   extcheck $_ssse3    'ssse3'    'pabsd %%xmm0, %%xmm0'
   extcheck $_sse4_1   'sse4_1'   'pmaxsb %%xmm0, %%xmm0'
   extcheck $_sse4_2   'sse4_2'   'pcmpgtq %%xmm0, %%xmm0'
-  extcheck $_avx      'avx'      'vpabsw %%xmm0, %%xmm0'
+  extcheck $_avx      'avx'      'vpabsw %%xmm0, %%xmm0' && def_simd_align_32='#define HAVE_SIMD_ALIGN_32 1'
   extcheck $_avx2     'avx2'     'vextracti128 $0, %%ymm0, %%xmm0'
   extcheck $_xop      'xop'      'vpmacsdd %%xmm0, %%xmm1, %%xmm2, %%xmm3'
   extcheck $_fma3     'fma3'     'vfmadd132ps %%ymm0, %%ymm1, %%ymm2'
@@ -9342,6 +9343,7 @@ $def_openssl
 #define HAVE_RDTSC 0
 #define HAVE_SECTION_DATA_REL_RO 0
 #define HAVE_SIMD_ALIGN_16 1
+$def_simd_align_32
 #define HAVE_STRERROR_R 0
 #define HAVE_STRPTIME 0
 #define HAVE_STRUCT_POLLFD 0
-- 
2.11.0


More information about the MPlayer-dev-eng mailing list