small linux/altivec compile fix in postproc/ by (Romain Dolbeau <dolbeau at irisa...
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Jun 2004 10:00:36 +0000 (10:00 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Jun 2004 10:00:36 +0000 (10:00 +0000)
Originally committed as revision 12533 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/swscale_altivec_template.c

index 5cd7068..b1608d4 100644 (file)
 */
 
 #ifdef CONFIG_DARWIN
-static const vector signed int vzero =
-  (vector signed int)(0, 0, 0, 0);
-static const vector unsigned int altivec_vectorShiftInt19 =
-  (vector unsigned int)(19, 19, 19, 19);
+#define AVV(x...) (x)
 #else
+#define AVV(x...) {x}
+#endif
+
 static const vector signed int vzero =
-  (vector signed int){0,0,0,0};
+  (const vector signed int)AVV(0, 0, 0, 0);
 static const vector unsigned int altivec_vectorShiftInt19 =
-  (vector unsigned int){19, 19, 19, 19};
-
-#endif
+  (const vector unsigned int)AVV(19, 19, 19, 19);
 
 static inline void
 altivec_packIntArrayToCharArray(int *val, uint8_t* dest, int dstW) {