Mercurial > libavcodec.hg
diff ppc/fft_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/fft_altivec.c Sun Jan 19 18:30:29 2003 +0000 +++ b/ppc/fft_altivec.c Sun Jan 19 19:00:45 2003 +0000 @@ -60,7 +60,7 @@ */ void fft_calc_altivec(FFTContext *s, FFTComplex *z) { -ALTIVEC_TBL_DECLARE(altivec_fft_num, s->nbits >= 6); +POWERPC_TBL_DECLARE(altivec_fft_num, s->nbits >= 6); #ifdef ALTIVEC_USE_REFERENCE_C_CODE int ln = s->nbits; int j, np, np2; @@ -70,7 +70,7 @@ int l; FFTSample tmp_re, tmp_im; -ALTIVEC_TBL_START_COUNT(altivec_fft_num, s->nbits >= 6); +POWERPC_TBL_START_COUNT(altivec_fft_num, s->nbits >= 6); np = 1 << ln; @@ -135,7 +135,7 @@ nloops = nloops << 1; } while (nblocks != 0); -ALTIVEC_TBL_STOP_COUNT(altivec_fft_num, s->nbits >= 6); +POWERPC_TBL_STOP_COUNT(altivec_fft_num, s->nbits >= 6); #else /* ALTIVEC_USE_REFERENCE_C_CODE */ register const vector float vczero = (const vector float)(0.); @@ -147,7 +147,7 @@ FFTComplex *cptr, *cptr1; int k; -ALTIVEC_TBL_START_COUNT(altivec_fft_num, s->nbits >= 6); +POWERPC_TBL_START_COUNT(altivec_fft_num, s->nbits >= 6); np = 1 << ln; @@ -235,7 +235,7 @@ nloops = nloops << 1; } while (nblocks != 0); -ALTIVEC_TBL_STOP_COUNT(altivec_fft_num, s->nbits >= 6); +POWERPC_TBL_STOP_COUNT(altivec_fft_num, s->nbits >= 6); #endif /* ALTIVEC_USE_REFERENCE_C_CODE */ }