rename POWERPC_PERFORMANCE_REPORT to CONFIG_POWERPC_PERF
authorMåns Rullgård <mans@mansr.com>
Tue, 13 Feb 2007 23:45:28 +0000 (23:45 +0000)
committerMåns Rullgård <mans@mansr.com>
Tue, 13 Feb 2007 23:45:28 +0000 (23:45 +0000)
Originally committed as revision 7968 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure
ffmpeg.c
libavcodec/ppc/dsputil_ppc.c
libavcodec/ppc/dsputil_ppc.h
libavcodec/ppc/idct_altivec.c

index ae4231ab354221a495c68a26a7fd22706c0407e1..25f2b77098d41f147e0e5f1bddd614de44200d2c 100755 (executable)
--- a/configure
+++ b/configure
@@ -1891,7 +1891,7 @@ case "$arch" in
             echo "#define POWERPC_MODE_64BITS 1" >> $TMPH
         fi
         if enabled powerpc_perf; then
-            echo "#define POWERPC_PERFORMANCE_REPORT 1" >> $TMPH
+            echo "#define CONFIG_POWERPC_PERF 1" >> $TMPH
         fi
         ;;
     sparc64)
index a98c7e9b7d7ac94b728fd9dd64be33f485e58ba6..7eb7011e84215699ca4653532e9594ddd3a4cb57 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3963,10 +3963,10 @@ int main(int argc, char **argv)
     if(inter_matrix)
         av_free(inter_matrix);
 
-#ifdef POWERPC_PERFORMANCE_REPORT
+#ifdef CONFIG_POWERPC_PERF
     extern void powerpc_display_perf_report(void);
     powerpc_display_perf_report();
-#endif /* POWERPC_PERFORMANCE_REPORT */
+#endif /* CONFIG_POWERPC_PERF */
 
     if (received_sigterm) {
         fprintf(stderr,
index 9169eaef059fc83342dbd04b8d632b0251401e0a..117a7adf132bcf75b661d089063475ca9e6b21f1 100644 (file)
@@ -55,7 +55,7 @@ int mm_support(void)
     return result;
 }
 
-#ifdef POWERPC_PERFORMANCE_REPORT
+#ifdef CONFIG_POWERPC_PERF
 unsigned long long perfdata[POWERPC_NUM_PMC_ENABLED][powerpc_perf_total][powerpc_data_total];
 /* list below must match enum in dsputil_ppc.h */
 static unsigned char* perfname[] = {
@@ -90,7 +90,7 @@ static unsigned char* perfname[] = {
 #include <stdio.h>
 #endif
 
-#ifdef POWERPC_PERFORMANCE_REPORT
+#ifdef CONFIG_POWERPC_PERF
 void powerpc_display_perf_report(void)
 {
   int i, j;
@@ -112,7 +112,7 @@ void powerpc_display_perf_report(void)
       }
   }
 }
-#endif /* POWERPC_PERFORMANCE_REPORT */
+#endif /* CONFIG_POWERPC_PERF */
 
 /* ***** WARNING ***** WARNING ***** WARNING ***** */
 /*
@@ -305,7 +305,7 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
         }
         }
 
-#ifdef POWERPC_PERFORMANCE_REPORT
+#ifdef CONFIG_POWERPC_PERF
         {
           int i, j;
           for (i = 0 ; i < powerpc_perf_total ; i++)
@@ -319,7 +319,7 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
               }
           }
         }
-#endif /* POWERPC_PERFORMANCE_REPORT */
+#endif /* CONFIG_POWERPC_PERF */
     }
 #endif /* HAVE_ALTIVEC */
 }
index ab2b05780f7edd9ace5e0cb164bf013b2427bdb6..5b25732b2dba4811ecefdeab9cd64ddebacafc32 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef _DSPUTIL_PPC_
 #define _DSPUTIL_PPC_
 
-#ifdef POWERPC_PERFORMANCE_REPORT
+#ifdef CONFIG_POWERPC_PERF
 void powerpc_display_perf_report(void);
 /* the 604* have 2, the G3* have 4, the G4s have 6,
    and the G5 are completely different (they MUST use
@@ -145,11 +145,11 @@ extern unsigned long long perfdata[POWERPC_NUM_PMC_ENABLED][powerpc_perf_total][
     }                             \
   }                               \
 } while (0)
-#else /* POWERPC_PERFORMANCE_REPORT */
+#else /* CONFIG_POWERPC_PERF */
 // those are needed to avoid empty statements.
 #define POWERPC_PERF_DECLARE(a, cond)        int altivec_placeholder __attribute__ ((unused))
 #define POWERPC_PERF_START_COUNT(a, cond)    do {} while (0)
 #define POWERPC_PERF_STOP_COUNT(a, cond)     do {} while (0)
-#endif /* POWERPC_PERFORMANCE_REPORT */
+#endif /* CONFIG_POWERPC_PERF */
 
 #endif /*  _DSPUTIL_PPC_ */
index cee46fc25a7e80fa07707e6017522df9eb2d1188..66c8082f76cc6e07fdbdde7872471a8741d3c51d 100644 (file)
@@ -171,7 +171,7 @@ void idct_put_altivec(uint8_t* dest, int stride, vector_s16_t* block)
 POWERPC_PERF_DECLARE(altivec_idct_put_num, 1);
     vector_u8_t tmp;
 
-#ifdef POWERPC_PERFORMANCE_REPORT
+#ifdef CONFIG_POWERPC_PERF
 POWERPC_PERF_START_COUNT(altivec_idct_put_num, 1);
 #endif
     IDCT
@@ -202,7 +202,7 @@ POWERPC_PERF_DECLARE(altivec_idct_add_num, 1);
     vector_u8_t perm1;
     vector_u8_t p0, p1, p;
 
-#ifdef POWERPC_PERFORMANCE_REPORT
+#ifdef CONFIG_POWERPC_PERF
 POWERPC_PERF_START_COUNT(altivec_idct_add_num, 1);
 #endif