Metrowerks CodeWarrior patches by (John Dalgliesh <johnd at defyne dot org>)
[ffmpeg.git] / libavcodec / ppc / idct_altivec.c
index d821ecd..3445ada 100644 (file)
@@ -44,6 +44,7 @@
 #include "dsputil_altivec.h"
 
 #define vector_s16_t vector signed short
+#define const_vector_s16_t const_vector signed short
 #define vector_u16_t vector unsigned short
 #define vector_s8_t vector signed char
 #define vector_u8_t vector unsigned char
     vx7 = vec_sra (vy7, shift);
 
 
-static const vector_s16_t constants[5] = {
+static const_vector_s16_t constants[5] = {
     (vector_s16_t) AVV(23170, 13573, 6518, 21895, -23170, -21895, 32, 31),
     (vector_s16_t) AVV(16384, 22725, 21407, 19266, 16384, 19266, 21407, 22725),
     (vector_s16_t) AVV(22725, 31521, 29692, 26722, 22725, 26722, 29692, 31521),
@@ -174,8 +175,9 @@ POWERPC_PERF_STOP_COUNT(altivec_idct_put_num, 1);
 #else /* ALTIVEC_USE_REFERENCE_C_CODE */
     vector_u8_t tmp;
 
+#ifdef POWERPC_PERFORMANCE_REPORT
 POWERPC_PERF_START_COUNT(altivec_idct_put_num, 1);
-
+#endif
     IDCT
 
 #define COPY(dest,src)                                         \
@@ -211,7 +213,9 @@ POWERPC_PERF_STOP_COUNT(altivec_idct_add_num, 1);
     vector_u8_t perm1;
     vector_u8_t p0, p1, p;
 
+#ifdef POWERPC_PERFORMANCE_REPORT
 POWERPC_PERF_START_COUNT(altivec_idct_add_num, 1);
+#endif
 
     IDCT