diff libmpeg2/idct_altivec.c @ 25980:11181df06389

Do not check for __APPLE_ALTIVEC__, just check for __APPLE_CC__. This should work even when -faltivec is not specified.
author diego
date Sat, 16 Feb 2008 17:44:49 +0000
parents f6881c789312
children 4559d4a7c3cb
line wrap: on
line diff
--- a/libmpeg2/idct_altivec.c	Sat Feb 16 15:34:19 2008 +0000
+++ b/libmpeg2/idct_altivec.c	Sat Feb 16 17:44:49 2008 +0000
@@ -41,7 +41,7 @@
 typedef vector signed int vector_s32_t;
 typedef vector unsigned int vector_u32_t;
 
-#if defined( HAVE_ALTIVEC_H ) && !defined( __APPLE_ALTIVEC__ ) && (__GNUC__ * 100 + __GNUC_MINOR__ < 303)
+#if defined(HAVE_ALTIVEC_H) && !defined(__APPLE_CC__) && (__GNUC__ * 100 + __GNUC_MINOR__ < 303)
 /* work around gcc <3.3 vec_mergel bug */
 static inline vector_s16_t my_vec_mergel (vector_s16_t const A,
 					  vector_s16_t const B)
@@ -56,7 +56,7 @@
 #define vec_mergel my_vec_mergel
 #endif
 
-#if defined( __APPLE_CC__ ) && defined( __APPLE_ALTIVEC__ ) /* apple */
+#if defined(__APPLE_CC__)	/* 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}