Mercurial > libavcodec.hg
diff ppc/gmc_altivec.c @ 1015:35cf2f4a0f8c libavcodec
PPC perf, PPC clear_block, AltiVec put_pixels8_xy2 patch by (Romain Dolbeau <dolbeau at irisa dot fr>)
author | michaelni |
---|---|
date | Sun, 19 Jan 2003 19:00:45 +0000 |
parents | 3b7cc8e4b83f |
children | b4172ff70d27 |
line wrap: on
line diff
--- a/ppc/gmc_altivec.c Sun Jan 19 18:30:29 2003 +0000 +++ b/ppc/gmc_altivec.c Sun Jan 19 19:00:45 2003 +0000 @@ -28,7 +28,7 @@ */ void gmc1_altivec(UINT8 *dst /* align 8 */, UINT8 *src /* align1 */, int stride, int h, int x16, int y16, int rounder) { -ALTIVEC_TBL_DECLARE(altivec_gmc1_num, h == 8); +POWERPC_TBL_DECLARE(altivec_gmc1_num, h == 8); #ifdef ALTIVEC_USE_REFERENCE_C_CODE const int A=(16-x16)*(16-y16); const int B=( x16)*(16-y16); @@ -36,7 +36,7 @@ const int D=( x16)*( y16); int i; -ALTIVEC_TBL_START_COUNT(altivec_gmc1_num, h == 8); +POWERPC_TBL_START_COUNT(altivec_gmc1_num, h == 8); for(i=0; i<h; i++) { @@ -52,7 +52,7 @@ src+= stride; } -ALTIVEC_TBL_STOP_COUNT(altivec_gmc1_num, h == 8); +POWERPC_TBL_STOP_COUNT(altivec_gmc1_num, h == 8); #else /* ALTIVEC_USE_REFERENCE_C_CODE */ const unsigned short __attribute__ ((aligned(16))) rounder_a[8] = @@ -75,7 +75,7 @@ unsigned long src_really_odd = (unsigned long)src & 0x0000000F; -ALTIVEC_TBL_START_COUNT(altivec_gmc1_num, h == 8); +POWERPC_TBL_START_COUNT(altivec_gmc1_num, h == 8); tempA = vec_ld(0, (unsigned short*)ABCD); Av = vec_splat(tempA, 0); @@ -163,7 +163,7 @@ src += stride; } -ALTIVEC_TBL_STOP_COUNT(altivec_gmc1_num, h == 8); +POWERPC_TBL_STOP_COUNT(altivec_gmc1_num, h == 8); #endif /* ALTIVEC_USE_REFERENCE_C_CODE */ }