[Mplayer-cvslog] CVS: main/postproc swscale_altivec_template.c, 1.2, 1.3
Michael Niedermayer CVS
syncmail at mplayerhq.hu
Fri Jun 4 12:00:38 CEST 2004
CVS change done by Michael Niedermayer CVS
Update of /cvsroot/mplayer/main/postproc
In directory mail:/var2/tmp/cvs-serv11699
Modified Files:
swscale_altivec_template.c
Log Message:
small linux/altivec compile fix in postproc/ by (Romain Dolbeau <dolbeau at irisa dot fr>)
Index: swscale_altivec_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale_altivec_template.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- swscale_altivec_template.c 6 Apr 2004 00:25:47 -0000 1.2
+++ swscale_altivec_template.c 4 Jun 2004 10:00:36 -0000 1.3
@@ -21,17 +21,15 @@
*/
#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) {
More information about the MPlayer-cvslog
mailing list