OSDN Git Service

PPC: convert Altivec FFT to pure assembler
authorMåns Rullgård <mans@mansr.com>
Sun, 4 Jul 2010 18:33:47 +0000 (18:33 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 4 Jul 2010 18:33:47 +0000 (18:33 +0000)
commita46b84d1204d3cd2de14f08de29afee08f8f86d0
tree05d05355275ff967340cccf658b4ca691469744c
parentdeca86eab1623b3391b7113b4ac6e74b8408639d
PPC: convert Altivec FFT to pure assembler

On PPC a leaf function has a 288-byte red zone below the stack pointer,
sparing these functions the chore of setting up a full stack frame.

When a function call is disguised within an inline asm block, the
compiler might not adjust the stack pointer as required before a
function call, resulting in the red zone being clobbered.

Moving the entire function to pure asm avoids this problem and also
results in somewhat better code.

Originally committed as revision 24044 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ppc/fft_altivec.c
libavcodec/ppc/fft_altivec_s.S