]> git.sesse.net Git - ffmpeg/commitdiff
lavu: add LOCAL_ALIGNED_32
authorJames Almer <jamrial@gmail.com>
Thu, 24 Apr 2014 02:53:36 +0000 (23:53 -0300)
committerAnton Khirnov <anton@khirnov.net>
Wed, 3 Aug 2016 08:56:52 +0000 (10:56 +0200)
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
configure
libavutil/internal.h

index 66da1e48df6f24f200c922bd916479832c31d30c..80aa09ea4b63d92d3ad0172b9a27a28c61239138 100755 (executable)
--- a/configure
+++ b/configure
@@ -1468,6 +1468,7 @@ ARCH_FEATURES="
     fast_cmov
     local_aligned_8
     local_aligned_16
+    local_aligned_32
     simd_align_16
 "
 
@@ -4296,7 +4297,7 @@ elif enabled parisc; 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 ibm_asm   '"add 0, 0, 0"'
@@ -4337,7 +4338,7 @@ elif enabled x86; then
     check_builtin rdtsc    intrin.h   "__rdtsc()"
     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
     # As 'i' is stored on the stack, this program will crash
index b9be333b47644548d827e48fe2cf13f024145da7..d96762c75db8a5aec74281c6423866449fa082e4 100644 (file)
 #   define LOCAL_ALIGNED_16(t, v, ...) LOCAL_ALIGNED(16, t, v, __VA_ARGS__)
 #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)\
 {\
     p = av_malloc(size);\