diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-05-21 17:50:57 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-05-21 17:50:57 +0000 |
commit | a9a07762b8c89c7a1136115fe5da4cb9cfc22356 (patch) | |
tree | 5298387fcc951a330a0ae9df55d2cf4c705aa20f /libavcodec/ppc/dsputil_altivec.c | |
parent | d9974a4867de0bd913c258822f4a47fb36dec111 (diff) | |
download | ffmpeg-a9a07762b8c89c7a1136115fe5da4cb9cfc22356.tar.gz |
altivec gcc-3 fixes by (Magnus Damm <damm at opensource dot se>)
Originally committed as revision 1896 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/dsputil_altivec.c')
-rw-r--r-- | libavcodec/ppc/dsputil_altivec.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/libavcodec/ppc/dsputil_altivec.c b/libavcodec/ppc/dsputil_altivec.c index d48332ba97..32e881b703 100644 --- a/libavcodec/ppc/dsputil_altivec.c +++ b/libavcodec/ppc/dsputil_altivec.c @@ -19,6 +19,9 @@ */ #include "../dsputil.h" + +#include "gcc_fixes.h" + #include "dsputil_altivec.h" #ifdef CONFIG_DARWIN @@ -303,11 +306,8 @@ int pix_abs8x8_altivec(uint8_t *pix1, uint8_t *pix2, int line_size) vector signed int sumdiffs; sad = (vector unsigned int)vec_splat_u32(0); -#ifdef CONFIG_DARWIN - permclear = (vector unsigned char)(255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0); -#else - permclear = (vector unsigned char){255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0}; -#endif + + permclear = (vector unsigned char)AVV(255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0); for(i=0;i<8;i++) { /* Read potentially unaligned pixels into t1 and t2 @@ -387,11 +387,9 @@ int sse8_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size) vector signed int sumsqr; sum = (vector unsigned int)vec_splat_u32(0); -#ifdef CONFIG_DARWIN - permclear = (vector unsigned char)(255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0); -#else - permclear = (vector unsigned char){255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0}; -#endif + + permclear = (vector unsigned char)AVV(255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0); + for(i=0;i<8;i++) { /* Read potentially unaligned pixels into t1 and t2 |