From e45a2872fafe631c14aee9f79d0963d68c4fc1fd Mon Sep 17 00:00:00 2001 From: Romain Dolbeau Date: Wed, 9 Jul 2003 20:18:13 +0000 Subject: 1) remove TBL support in PPC performance. It's much more useful to use the PMCs, and with Apple's CHUD it's fairly easy too. No reason to keep useless code around 2) make the PPC perf stuff a configure option 3) make put_pixels16_altivec a bit faster by unrolling the loop by 4 patch by (Romain Dolbeau ) Originally committed as revision 2022 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ppc/idct_altivec.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libavcodec/ppc/idct_altivec.c') diff --git a/libavcodec/ppc/idct_altivec.c b/libavcodec/ppc/idct_altivec.c index f8a8aa6787..d821ecd223 100644 --- a/libavcodec/ppc/idct_altivec.c +++ b/libavcodec/ppc/idct_altivec.c @@ -165,16 +165,16 @@ static const vector_s16_t constants[5] = { void idct_put_altivec(uint8_t* dest, int stride, vector_s16_t* block) { -POWERPC_TBL_DECLARE(altivec_idct_put_num, 1); +POWERPC_PERF_DECLARE(altivec_idct_put_num, 1); #ifdef ALTIVEC_USE_REFERENCE_C_CODE -POWERPC_TBL_START_COUNT(altivec_idct_put_num, 1); +POWERPC_PERF_START_COUNT(altivec_idct_put_num, 1); void simple_idct_put(uint8_t *dest, int line_size, int16_t *block); simple_idct_put(dest, stride, (int16_t*)block); -POWERPC_TBL_STOP_COUNT(altivec_idct_put_num, 1); +POWERPC_PERF_STOP_COUNT(altivec_idct_put_num, 1); #else /* ALTIVEC_USE_REFERENCE_C_CODE */ vector_u8_t tmp; -POWERPC_TBL_START_COUNT(altivec_idct_put_num, 1); +POWERPC_PERF_START_COUNT(altivec_idct_put_num, 1); IDCT @@ -192,18 +192,18 @@ POWERPC_TBL_START_COUNT(altivec_idct_put_num, 1); COPY (dest, vx6) dest += stride; COPY (dest, vx7) -POWERPC_TBL_STOP_COUNT(altivec_idct_put_num, 1); +POWERPC_PERF_STOP_COUNT(altivec_idct_put_num, 1); #endif /* ALTIVEC_USE_REFERENCE_C_CODE */ } void idct_add_altivec(uint8_t* dest, int stride, vector_s16_t* block) { -POWERPC_TBL_DECLARE(altivec_idct_add_num, 1); +POWERPC_PERF_DECLARE(altivec_idct_add_num, 1); #ifdef ALTIVEC_USE_REFERENCE_C_CODE -POWERPC_TBL_START_COUNT(altivec_idct_add_num, 1); +POWERPC_PERF_START_COUNT(altivec_idct_add_num, 1); void simple_idct_add(uint8_t *dest, int line_size, int16_t *block); simple_idct_add(dest, stride, (int16_t*)block); -POWERPC_TBL_STOP_COUNT(altivec_idct_add_num, 1); +POWERPC_PERF_STOP_COUNT(altivec_idct_add_num, 1); #else /* ALTIVEC_USE_REFERENCE_C_CODE */ vector_u8_t tmp; vector_s16_t tmp2, tmp3; @@ -211,7 +211,7 @@ POWERPC_TBL_STOP_COUNT(altivec_idct_add_num, 1); vector_u8_t perm1; vector_u8_t p0, p1, p; -POWERPC_TBL_START_COUNT(altivec_idct_add_num, 1); +POWERPC_PERF_START_COUNT(altivec_idct_add_num, 1); IDCT @@ -239,7 +239,7 @@ POWERPC_TBL_START_COUNT(altivec_idct_add_num, 1); ADD (dest, vx6, perm0) dest += stride; ADD (dest, vx7, perm1) -POWERPC_TBL_STOP_COUNT(altivec_idct_add_num, 1); +POWERPC_PERF_STOP_COUNT(altivec_idct_add_num, 1); #endif /* ALTIVEC_USE_REFERENCE_C_CODE */ } -- cgit v1.2.3