[PATCH 2/2] configure: Define HAVE_SIMD_ALIGN_32

Alexander Strasser <[email protected]>
Newsgroups gmane.comp.video.mplayer.devel
Message-ID <681d495d6a2e5e3d8014e072bd9f2d57160231b8.1491173043.git.eclipse7@gmx.net>
The define is used since FFmpeg commit 6c4665d.

Fixes part of ticket #2318

Signed-off-by: Alexander Strasser <[email protected]>
---
 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
_______________________________________________
MPlayer-dev-eng mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.