comparison ppc/dsputil_ppc.c @ 2967:ef2149182f1c libavcodec

COSMETICS: Remove all trailing whitespace.
author diego
date Sat, 17 Dec 2005 18:14:38 +0000
parents 4c0ab7ed2642
children bfabfdf9ce55
comparison
equal deleted inserted replaced
2966:564788471dd4 2967:ef2149182f1c
225 if (fakedata[i] == (char)0) 225 if (fakedata[i] == (char)0)
226 count++; 226 count++;
227 } 227 }
228 228
229 av_free(fakedata); 229 av_free(fakedata);
230 230
231 return count; 231 return count;
232 } 232 }
233 #else 233 #else
234 long check_dcbzl_effect(void) 234 long check_dcbzl_effect(void)
235 { 235 {
255 break; 255 break;
256 } 256 }
257 257
258 #ifdef HAVE_ALTIVEC 258 #ifdef HAVE_ALTIVEC
259 dsputil_h264_init_ppc(c, avctx); 259 dsputil_h264_init_ppc(c, avctx);
260 260
261 if (has_altivec()) { 261 if (has_altivec()) {
262 mm_flags |= MM_ALTIVEC; 262 mm_flags |= MM_ALTIVEC;
263 263
264 // Altivec specific optimisations 264 // Altivec specific optimisations
265 c->pix_abs[0][1] = sad16_x2_altivec; 265 c->pix_abs[0][1] = sad16_x2_altivec;
266 c->pix_abs[0][2] = sad16_y2_altivec; 266 c->pix_abs[0][2] = sad16_y2_altivec;
267 c->pix_abs[0][3] = sad16_xy2_altivec; 267 c->pix_abs[0][3] = sad16_xy2_altivec;
268 c->pix_abs[0][0] = sad16_altivec; 268 c->pix_abs[0][0] = sad16_altivec;
287 c->avg_pixels_tab[1][3] = avg_pixels8_xy2_altivec; 287 c->avg_pixels_tab[1][3] = avg_pixels8_xy2_altivec;
288 c->put_pixels_tab[1][3] = put_pixels8_xy2_altivec; 288 c->put_pixels_tab[1][3] = put_pixels8_xy2_altivec;
289 c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy2_altivec; 289 c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy2_altivec;
290 c->put_pixels_tab[0][3] = put_pixels16_xy2_altivec; 290 c->put_pixels_tab[0][3] = put_pixels16_xy2_altivec;
291 c->put_no_rnd_pixels_tab[0][3] = put_no_rnd_pixels16_xy2_altivec; 291 c->put_no_rnd_pixels_tab[0][3] = put_no_rnd_pixels16_xy2_altivec;
292 292
293 c->gmc1 = gmc1_altivec; 293 c->gmc1 = gmc1_altivec;
294 294
295 #ifdef CONFIG_DARWIN // ATM gcc-3.3 and gcc-3.4 fail to compile these in linux... 295 #ifdef CONFIG_DARWIN // ATM gcc-3.3 and gcc-3.4 fail to compile these in linux...
296 c->hadamard8_diff[0] = hadamard8_diff16_altivec; 296 c->hadamard8_diff[0] = hadamard8_diff16_altivec;
297 c->hadamard8_diff[1] = hadamard8_diff8x8_altivec; 297 c->hadamard8_diff[1] = hadamard8_diff8x8_altivec;
317 #else /* ALTIVEC_USE_REFERENCE_C_CODE */ 317 #else /* ALTIVEC_USE_REFERENCE_C_CODE */
318 c->idct_permutation_type = FF_NO_IDCT_PERM; 318 c->idct_permutation_type = FF_NO_IDCT_PERM;
319 #endif /* ALTIVEC_USE_REFERENCE_C_CODE */ 319 #endif /* ALTIVEC_USE_REFERENCE_C_CODE */
320 } 320 }
321 } 321 }
322 322
323 #ifdef POWERPC_PERFORMANCE_REPORT 323 #ifdef POWERPC_PERFORMANCE_REPORT
324 { 324 {
325 int i, j; 325 int i, j;
326 for (i = 0 ; i < powerpc_perf_total ; i++) 326 for (i = 0 ; i < powerpc_perf_total ; i++)
327 { 327 {