Mercurial > libavcodec.hg
comparison ppc/dsputil_ppc.c @ 4521:891590781d9e libavcodec
rename POWERPC_PERFORMANCE_REPORT to CONFIG_POWERPC_PERF
author | mru |
---|---|
date | Tue, 13 Feb 2007 23:45:28 +0000 |
parents | ef1d382309e5 |
children | eeac11145c4e |
comparison
equal
deleted
inserted
replaced
4520:9bf957e669f0 | 4521:891590781d9e |
---|---|
53 } | 53 } |
54 #endif /* result */ | 54 #endif /* result */ |
55 return result; | 55 return result; |
56 } | 56 } |
57 | 57 |
58 #ifdef POWERPC_PERFORMANCE_REPORT | 58 #ifdef CONFIG_POWERPC_PERF |
59 unsigned long long perfdata[POWERPC_NUM_PMC_ENABLED][powerpc_perf_total][powerpc_data_total]; | 59 unsigned long long perfdata[POWERPC_NUM_PMC_ENABLED][powerpc_perf_total][powerpc_data_total]; |
60 /* list below must match enum in dsputil_ppc.h */ | 60 /* list below must match enum in dsputil_ppc.h */ |
61 static unsigned char* perfname[] = { | 61 static unsigned char* perfname[] = { |
62 "ff_fft_calc_altivec", | 62 "ff_fft_calc_altivec", |
63 "gmc1_altivec", | 63 "gmc1_altivec", |
88 "" | 88 "" |
89 }; | 89 }; |
90 #include <stdio.h> | 90 #include <stdio.h> |
91 #endif | 91 #endif |
92 | 92 |
93 #ifdef POWERPC_PERFORMANCE_REPORT | 93 #ifdef CONFIG_POWERPC_PERF |
94 void powerpc_display_perf_report(void) | 94 void powerpc_display_perf_report(void) |
95 { | 95 { |
96 int i, j; | 96 int i, j; |
97 av_log(NULL, AV_LOG_INFO, "PowerPC performance report\n Values are from the PMC registers, and represent whatever the registers are set to record.\n"); | 97 av_log(NULL, AV_LOG_INFO, "PowerPC performance report\n Values are from the PMC registers, and represent whatever the registers are set to record.\n"); |
98 for(i = 0 ; i < powerpc_perf_total ; i++) | 98 for(i = 0 ; i < powerpc_perf_total ; i++) |
110 (double)perfdata[j][i][powerpc_data_num], | 110 (double)perfdata[j][i][powerpc_data_num], |
111 perfdata[j][i][powerpc_data_num]); | 111 perfdata[j][i][powerpc_data_num]); |
112 } | 112 } |
113 } | 113 } |
114 } | 114 } |
115 #endif /* POWERPC_PERFORMANCE_REPORT */ | 115 #endif /* CONFIG_POWERPC_PERF */ |
116 | 116 |
117 /* ***** WARNING ***** WARNING ***** WARNING ***** */ | 117 /* ***** WARNING ***** WARNING ***** WARNING ***** */ |
118 /* | 118 /* |
119 clear_blocks_dcbz32_ppc will not work properly | 119 clear_blocks_dcbz32_ppc will not work properly |
120 on PowerPC processors with a cache line size | 120 on PowerPC processors with a cache line size |
303 c->idct_add = idct_add_altivec; | 303 c->idct_add = idct_add_altivec; |
304 c->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM; | 304 c->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM; |
305 } | 305 } |
306 } | 306 } |
307 | 307 |
308 #ifdef POWERPC_PERFORMANCE_REPORT | 308 #ifdef CONFIG_POWERPC_PERF |
309 { | 309 { |
310 int i, j; | 310 int i, j; |
311 for (i = 0 ; i < powerpc_perf_total ; i++) | 311 for (i = 0 ; i < powerpc_perf_total ; i++) |
312 { | 312 { |
313 for (j = 0; j < POWERPC_NUM_PMC_ENABLED ; j++) | 313 for (j = 0; j < POWERPC_NUM_PMC_ENABLED ; j++) |
317 perfdata[j][i][powerpc_data_sum] = 0x0000000000000000ULL; | 317 perfdata[j][i][powerpc_data_sum] = 0x0000000000000000ULL; |
318 perfdata[j][i][powerpc_data_num] = 0x0000000000000000ULL; | 318 perfdata[j][i][powerpc_data_num] = 0x0000000000000000ULL; |
319 } | 319 } |
320 } | 320 } |
321 } | 321 } |
322 #endif /* POWERPC_PERFORMANCE_REPORT */ | 322 #endif /* CONFIG_POWERPC_PERF */ |
323 } | 323 } |
324 #endif /* HAVE_ALTIVEC */ | 324 #endif /* HAVE_ALTIVEC */ |
325 } | 325 } |