diff ppc/mpegvideo_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 d5ba514e3f4a
children 204273dd0349
line wrap: on
line diff
--- a/ppc/mpegvideo_altivec.c	Thu May 17 12:26:04 2007 +0000
+++ b/ppc/mpegvideo_altivec.c	Thu May 17 14:14:53 2007 +0000
@@ -523,17 +523,17 @@
 
     {
       register const_vector signed short vczero = (const_vector signed short)vec_splat_s16(0);
-      short __attribute__ ((aligned(16))) qmul8[] =
+      DECLARE_ALIGNED_16(short, qmul8[]) =
           {
             qmul, qmul, qmul, qmul,
             qmul, qmul, qmul, qmul
           };
-      short __attribute__ ((aligned(16))) qadd8[] =
+      DECLARE_ALIGNED_16(short, qadd8[]) =
           {
             qadd, qadd, qadd, qadd,
             qadd, qadd, qadd, qadd
           };
-      short __attribute__ ((aligned(16))) nqadd8[] =
+      DECLARE_ALIGNED_16(short, nqadd8[]) =
           {
             -qadd, -qadd, -qadd, -qadd,
             -qadd, -qadd, -qadd, -qadd