avcodec: add stride alignment needed for AVX-512

This commit is contained in:
James Darnley 2017-11-06 15:43:39 +01:00 committed by James Darnley
parent e2218ed8ce
commit 8f86e66238
2 changed files with 5 additions and 1 deletions

2
configure vendored
View File

@ -1892,6 +1892,7 @@ ARCH_FEATURES="
local_aligned
simd_align_16
simd_align_32
simd_align_64
"
BUILTIN_LIST="
@ -2394,6 +2395,7 @@ fast_clz_if_any="aarch64 alpha avr32 mips ppc x86"
fast_unaligned_if_any="aarch64 ppc x86"
simd_align_16_if_any="altivec neon sse"
simd_align_32_if_any="avx"
simd_align_64_if_any="avx512"
# system capabilities
symver_if_any="symver_asm_label symver_gnu_asm"

View File

@ -87,7 +87,9 @@
#define FF_SIGNBIT(x) ((x) >> CHAR_BIT * sizeof(x) - 1)
#if HAVE_SIMD_ALIGN_32
#if HAVE_SIMD_ALIGN_64
# define STRIDE_ALIGN 64 /* AVX-512 */
#elif HAVE_SIMD_ALIGN_32
# define STRIDE_ALIGN 32
#elif HAVE_SIMD_ALIGN_16
# define STRIDE_ALIGN 16