summaryrefslogtreecommitdiff
path: root/postproc
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-06-04 10:00:36 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-06-04 10:00:36 +0000
commit0d56feac94138fc5a49272253679ac925ba8540a (patch)
tree710be65fbe6027e7529eb589c4fa1f81a8680402 /postproc
parent0e9d4a67f43146f25623e385a575f8075a883312 (diff)
small linux/altivec compile fix in postproc/ by (Romain Dolbeau <dolbeau at irisa dot fr>)
Originally committed as revision 12533 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc')
-rw-r--r--postproc/swscale_altivec_template.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/postproc/swscale_altivec_template.c b/postproc/swscale_altivec_template.c
index 5cd70683a5..b1608d4ced 100644
--- a/postproc/swscale_altivec_template.c
+++ b/postproc/swscale_altivec_template.c
@@ -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) {