diff ppc/h264_template_altivec.c @ 5019:41cabe79ba25 libavcodec

use macro Use DECLARE_ALIGNED_16 to align stack-allocated variables instead of compiler-dependent __attribute__((aligned(16))) Origiginal thread: Date: May 17, 2007 12:30 AM Subject: [PATCH] Use DECLARE_ALIGNED_16 in libavcodec/ppc/
author gpoirier
date Thu, 17 May 2007 14:14:53 +0000
parents c8c591fe26f8
children cd266411b11a
line wrap: on
line diff
--- a/ppc/h264_template_altivec.c	Thu May 17 12:26:04 2007 +0000
+++ b/ppc/h264_template_altivec.c	Thu May 17 14:14:53 2007 +0000
@@ -21,7 +21,7 @@
 /* this code assume that stride % 16 == 0 */
 void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) {
   POWERPC_PERF_DECLARE(PREFIX_h264_chroma_mc8_num, 1);
-    signed int ABCD[4] __attribute__((aligned(16))) =
+    DECLARE_ALIGNED_16(signed int, ABCD[4]) =
                         {((8 - x) * (8 - y)),
                           ((x) * (8 - y)),
                           ((8 - x) * (y)),