diff options
author | Romain Dolbeau | 2003-07-09 20:18:13 +0000 |
---|---|---|
committer | Michael Niedermayer | 2003-07-09 20:18:13 +0000 |
commit | e45a2872fafe631c14aee9f79d0963d68c4fc1fd (patch) | |
tree | 8c559f7a215414fb8207f7f524702d11d5b9dce0 /libavcodec/ppc/idct_altivec.c | |
parent | 0273ceebbd01f9fd5238558e6151e0b9aa3305ab (diff) |
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>)
Originally committed as revision 2022 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/idct_altivec.c')
-rw-r--r-- | libavcodec/ppc/idct_altivec.c | 20 |
1 files changed, 10 insertions, 10 deletions
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 */ } |