Commit 3921b0a3 authored by michael's avatar michael

small linux/altivec compile fix in postproc/ by (Romain Dolbeau <dolbeau at irisa dot fr>)


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@12533 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 2010377f
...@@ -21,17 +21,15 @@ ...@@ -21,17 +21,15 @@
*/ */
#ifdef CONFIG_DARWIN #ifdef CONFIG_DARWIN
static const vector signed int vzero = #define AVV(x...) (x)
(vector signed int)(0, 0, 0, 0);
static const vector unsigned int altivec_vectorShiftInt19 =
(vector unsigned int)(19, 19, 19, 19);
#else #else
#define AVV(x...) {x}
#endif
static const vector signed int vzero = 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 = static const vector unsigned int altivec_vectorShiftInt19 =
(vector unsigned int){19, 19, 19, 19}; (const vector unsigned int)AVV(19, 19, 19, 19);
#endif
static inline void static inline void
altivec_packIntArrayToCharArray(int *val, uint8_t* dest, int dstW) { altivec_packIntArrayToCharArray(int *val, uint8_t* dest, int dstW) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment