Commit 25d5ea6d authored by James Almer's avatar James Almer Committed by Michael Niedermayer

lavu: add LOCAL_ALIGNED_32

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cebe06a0
...@@ -1559,6 +1559,7 @@ ARCH_FEATURES=" ...@@ -1559,6 +1559,7 @@ ARCH_FEATURES="
fast_cmov fast_cmov
local_aligned_8 local_aligned_8
local_aligned_16 local_aligned_16
local_aligned_32
" "
BUILTIN_LIST=" BUILTIN_LIST="
...@@ -4299,7 +4300,7 @@ elif enabled parisc; then ...@@ -4299,7 +4300,7 @@ elif enabled parisc; then
elif enabled ppc; then elif enabled ppc; then
enable local_aligned_8 local_aligned_16 enable local_aligned_8 local_aligned_16 local_aligned_32
check_inline_asm dcbzl '"dcbzl 0, %0" :: "r"(0)' check_inline_asm dcbzl '"dcbzl 0, %0" :: "r"(0)'
check_inline_asm ibm_asm '"add 0, 0, 0"' check_inline_asm ibm_asm '"add 0, 0, 0"'
...@@ -4334,7 +4335,7 @@ elif enabled x86; then ...@@ -4334,7 +4335,7 @@ elif enabled x86; then
check_builtin rdtsc intrin.h "__rdtsc()" check_builtin rdtsc intrin.h "__rdtsc()"
check_builtin mm_empty mmintrin.h "_mm_empty()" check_builtin mm_empty mmintrin.h "_mm_empty()"
enable local_aligned_8 local_aligned_16 enable local_aligned_8 local_aligned_16 local_aligned_32
# check whether EBP is available on x86 # check whether EBP is available on x86
# As 'i' is stored on the stack, this program will crash # As 'i' is stored on the stack, this program will crash
......
...@@ -122,6 +122,12 @@ ...@@ -122,6 +122,12 @@
# define LOCAL_ALIGNED_16(t, v, ...) LOCAL_ALIGNED(16, t, v, __VA_ARGS__) # define LOCAL_ALIGNED_16(t, v, ...) LOCAL_ALIGNED(16, t, v, __VA_ARGS__)
#endif #endif
#if HAVE_LOCAL_ALIGNED_32
# define LOCAL_ALIGNED_32(t, v, ...) E1(LOCAL_ALIGNED_D(32, t, v, __VA_ARGS__,,))
#else
# define LOCAL_ALIGNED_32(t, v, ...) LOCAL_ALIGNED(32, t, v, __VA_ARGS__)
#endif
#define FF_ALLOC_OR_GOTO(ctx, p, size, label)\ #define FF_ALLOC_OR_GOTO(ctx, p, size, label)\
{\ {\
p = av_malloc(size);\ p = av_malloc(size);\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment