Mercurial > libavcodec.hg
diff ppc/idct_altivec.c @ 1352:e8ff4783f188 libavcodec
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 <dolbeau at irisa dot fr>)
| author | michaelni |
|---|---|
| date | Wed, 09 Jul 2003 20:18:13 +0000 |
| parents | f3152eb76f1a |
| children | b370288f004d |
line wrap: on
line diff
--- a/ppc/idct_altivec.c Tue Jul 08 22:12:17 2003 +0000 +++ b/ppc/idct_altivec.c Wed Jul 09 20:18:13 2003 +0000 @@ -165,16 +165,16 @@ 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 @@ 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 @@ 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 @@ 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 */ }
