[MPlayer-cvslog] r26927 - in trunk: liba52/imdct.c liba52/liba52_changes.diff mp3lib/dct64_altivec.c

diego subversion at mplayerhq.hu
Fri May 30 14:05:24 CEST 2008


Author: diego
Date: Fri May 30 14:05:24 2008
New Revision: 26927

Log:
Check for HAVE_ALTIVEC_VECTOR_BRACES instead of __APPLE_CC__.


Modified:
   trunk/liba52/imdct.c
   trunk/liba52/liba52_changes.diff
   trunk/mp3lib/dct64_altivec.c

Modified: trunk/liba52/imdct.c
==============================================================================
--- trunk/liba52/imdct.c	(original)
+++ trunk/liba52/imdct.c	Fri May 30 14:05:24 2008
@@ -382,10 +382,10 @@ void imdct_do_512 (sample_t * data, samp
 #define WORD_s2 0x18,0x19,0x1a,0x1b
 #define WORD_s3 0x1c,0x1d,0x1e,0x1f
 
-#ifdef __APPLE_CC__
-#define AVV(x...) (x)
-#else
+#ifdef HAVE_ALTIVEC_VECTOR_BRACES
 #define AVV(x...) {x}
+#else
+#define AVV(x...) (x)
 #endif
 
 #define vcprm(a,b,c,d) (const vector unsigned char)AVV(WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d)

Modified: trunk/liba52/liba52_changes.diff
==============================================================================
--- trunk/liba52/liba52_changes.diff	(original)
+++ trunk/liba52/liba52_changes.diff	Fri May 30 14:05:24 2008
@@ -1563,10 +1563,10 @@
 +#define WORD_s2 0x18,0x19,0x1a,0x1b
 +#define WORD_s3 0x1c,0x1d,0x1e,0x1f
 +
-+#ifdef __APPLE_CC__
-+#define AVV(x...) (x)
-+#else
++#ifdef HAVE_ALTIVEC_VECTOR_BRACES
 +#define AVV(x...) {x}
++#else
++#define AVV(x...) (x)
 +#endif
 +
 +#define vcprm(a,b,c,d) (const vector unsigned char)AVV(WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d)

Modified: trunk/mp3lib/dct64_altivec.c
==============================================================================
--- trunk/mp3lib/dct64_altivec.c	(original)
+++ trunk/mp3lib/dct64_altivec.c	Fri May 30 14:05:24 2008
@@ -27,10 +27,10 @@
 #define WORD_s2 0x18,0x19,0x1a,0x1b
 #define WORD_s3 0x1c,0x1d,0x1e,0x1f
 
-#ifdef __APPLE_CC__
-#define AVV(x...) (x)
-#else
+#ifdef HAVE_ALTIVEC_VECTOR_BRACES
 #define AVV(x...) {x}
+#else
+#define AVV(x...) (x)
 #endif
 
 #define vcprm(a,b,c,d) (const vector unsigned char)AVV(WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d)



More information about the MPlayer-cvslog mailing list