[FFmpeg-devel] [PATCH] Altivec split-radix FFT

Diego Biurrun diego
Fri Aug 28 18:57:03 CEST 2009


On Fri, Aug 28, 2009 at 04:48:08PM +0000, Loren Merritt wrote:
> 
> --- a/configure
> +++ b/configure
> @@ -2107,6 +2108,7 @@ elif enabled mips; then
>  
> +    check_asm named_regs '"add r0, r0, r0"'
>      check_asm dcbzl     '"dcbzl 0, 1"'
>      check_asm ppc4xx    '"maclhw r10, r11, r12"'
>      check_asm xform_asm '"lwzx 0, %y0" :: "Z"(*(int*)0)'

nit: alphabetical order

> --- a/libavcodec/ppc/fft_altivec.c
> +++ b/libavcodec/ppc/fft_altivec.c
> @@ -30,106 +30,66 @@
> +static void swizzle(vec_f *z, int n)
> +{
> +    int i;
> +    n >>= 1;
> +    for(i=0; i<n; i+=2) {

for (i = 0; i < n; i += 2) {

I have a PPC, so let me know if you need some testing on my PowerBook
G4.

Diego



More information about the ffmpeg-devel mailing list