Mercurial > libavcodec.hg
comparison ppc/dsputil_ppc.h @ 2979:bfabfdf9ce55 libavcodec
COSMETICS: tabs --> spaces, some prettyprinting
author | diego |
---|---|
date | Thu, 22 Dec 2005 01:10:11 +0000 |
parents | b0102ea621dd |
children | 0b546eab515d |
comparison
equal
deleted
inserted
replaced
2978:403183bbb505 | 2979:bfabfdf9ce55 |
---|---|
112 #else | 112 #else |
113 #define POWERPC_GET_PMC5(a) do {} while (0) | 113 #define POWERPC_GET_PMC5(a) do {} while (0) |
114 #define POWERPC_GET_PMC6(a) do {} while (0) | 114 #define POWERPC_GET_PMC6(a) do {} while (0) |
115 #endif | 115 #endif |
116 #endif /* POWERPC_MODE_64BITS */ | 116 #endif /* POWERPC_MODE_64BITS */ |
117 #define POWERPC_PERF_DECLARE(a, cond) \ | 117 #define POWERPC_PERF_DECLARE(a, cond) \ |
118 POWERP_PMC_DATATYPE \ | 118 POWERP_PMC_DATATYPE \ |
119 pmc_start[POWERPC_NUM_PMC_ENABLED], \ | 119 pmc_start[POWERPC_NUM_PMC_ENABLED], \ |
120 pmc_stop[POWERPC_NUM_PMC_ENABLED], \ | 120 pmc_stop[POWERPC_NUM_PMC_ENABLED], \ |
121 pmc_loop_index; | 121 pmc_loop_index; |
122 #define POWERPC_PERF_START_COUNT(a, cond) do { \ | 122 #define POWERPC_PERF_START_COUNT(a, cond) do { \ |
123 POWERPC_GET_PMC6(pmc_start[5]); \ | 123 POWERPC_GET_PMC6(pmc_start[5]); \ |
124 POWERPC_GET_PMC5(pmc_start[4]); \ | 124 POWERPC_GET_PMC5(pmc_start[4]); \ |
125 POWERPC_GET_PMC4(pmc_start[3]); \ | 125 POWERPC_GET_PMC4(pmc_start[3]); \ |
139 for(pmc_loop_index = 0; \ | 139 for(pmc_loop_index = 0; \ |
140 pmc_loop_index < POWERPC_NUM_PMC_ENABLED; \ | 140 pmc_loop_index < POWERPC_NUM_PMC_ENABLED; \ |
141 pmc_loop_index++) \ | 141 pmc_loop_index++) \ |
142 { \ | 142 { \ |
143 if (pmc_stop[pmc_loop_index] >= pmc_start[pmc_loop_index]) \ | 143 if (pmc_stop[pmc_loop_index] >= pmc_start[pmc_loop_index]) \ |
144 { \ | 144 { \ |
145 POWERP_PMC_DATATYPE diff = \ | 145 POWERP_PMC_DATATYPE diff = \ |
146 pmc_stop[pmc_loop_index] - pmc_start[pmc_loop_index]; \ | 146 pmc_stop[pmc_loop_index] - pmc_start[pmc_loop_index]; \ |
147 if (diff < perfdata[pmc_loop_index][a][powerpc_data_min]) \ | 147 if (diff < perfdata[pmc_loop_index][a][powerpc_data_min]) \ |
148 perfdata[pmc_loop_index][a][powerpc_data_min] = diff; \ | 148 perfdata[pmc_loop_index][a][powerpc_data_min] = diff; \ |
149 if (diff > perfdata[pmc_loop_index][a][powerpc_data_max]) \ | 149 if (diff > perfdata[pmc_loop_index][a][powerpc_data_max]) \ |
150 perfdata[pmc_loop_index][a][powerpc_data_max] = diff; \ | 150 perfdata[pmc_loop_index][a][powerpc_data_max] = diff; \ |