Mercurial > mplayer.hg
diff libmpeg2/idct_altivec.c @ 26896:4559d4a7c3cb
Check for ALTIVEC_H instead of __APPLE_CC__ to decide which AltiVec vector
declaration syntax to use. Checking for HAVE_ALTIVEC_VECTOR_BRACES would be
better, but this variant is more likely to be mergeable upstream.
author | diego |
---|---|
date | Fri, 30 May 2008 12:09:06 +0000 |
parents | 11181df06389 |
children | da2271c341ee |
line wrap: on
line diff
--- a/libmpeg2/idct_altivec.c Fri May 30 12:05:24 2008 +0000 +++ b/libmpeg2/idct_altivec.c Fri May 30 12:09:06 2008 +0000 @@ -56,10 +56,10 @@ #define vec_mergel my_vec_mergel #endif -#if defined(__APPLE_CC__) /* apple */ +#ifdef HAVE_ALTIVEC_H /* gnu */ +#define VEC_S16(a,b,c,d,e,f,g,h) {a, b, c, d, e, f, g, h} +#else /* apple */ #define VEC_S16(a,b,c,d,e,f,g,h) (vector_s16_t) (a, b, c, d, e, f, g, h) -#else /* gnu */ -#define VEC_S16(a,b,c,d,e,f,g,h) {a, b, c, d, e, f, g, h} #endif static const vector_s16_t constants ATTR_ALIGN(16) =