diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2012-05-27 17:43:56 +0000 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-05-29 14:49:45 +0200 |
commit | bac0729d9e1dcd4efc63637c7832c8bb013d4284 (patch) | |
tree | 03fe431d21ff7e136b928dbda7939dd5023a4202 /libavcodec/x86/fft_3dn2.c | |
parent | 7263cd554496d95dec4b97df3e7a935208acd5b1 (diff) | |
download | ffmpeg-streaming-bac0729d9e1dcd4efc63637c7832c8bb013d4284.zip ffmpeg-streaming-bac0729d9e1dcd4efc63637c7832c8bb013d4284.tar.gz |
x86: use new schema for ASM macros
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Diffstat (limited to 'libavcodec/x86/fft_3dn2.c')
-rw-r--r-- | libavcodec/x86/fft_3dn2.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libavcodec/x86/fft_3dn2.c b/libavcodec/x86/fft_3dn2.c index ce3c9da..e684cc7 100644 --- a/libavcodec/x86/fft_3dn2.c +++ b/libavcodec/x86/fft_3dn2.c @@ -30,30 +30,30 @@ DECLARE_ALIGNED(8, static const unsigned int, m1m1)[2] = { 1U<<31, 1U<<31 }; "movq "#s","#d"\n"\ "psrlq $32,"#d"\n"\ "punpckldq "#s","#d"\n" -#define ff_fft_calc_3dn2 ff_fft_calc_3dn -#define ff_fft_dispatch_3dn2 ff_fft_dispatch_3dn -#define ff_fft_dispatch_interleave_3dn2 ff_fft_dispatch_interleave_3dn -#define ff_imdct_calc_3dn2 ff_imdct_calc_3dn -#define ff_imdct_half_3dn2 ff_imdct_half_3dn +#define ff_fft_calc_3dnow2 ff_fft_calc_3dnow +#define ff_fft_dispatch_3dnow2 ff_fft_dispatch_3dnow +#define ff_fft_dispatch_interleave_3dnow2 ff_fft_dispatch_interleave_3dnow +#define ff_imdct_calc_3dnow2 ff_imdct_calc_3dnow +#define ff_imdct_half_3dnow2 ff_imdct_half_3dnow #else #define PSWAPD(s,d) "pswapd "#s","#d"\n" #endif -void ff_fft_dispatch_3dn2(FFTComplex *z, int nbits); -void ff_fft_dispatch_interleave_3dn2(FFTComplex *z, int nbits); +void ff_fft_dispatch_3dnow2(FFTComplex *z, int nbits); +void ff_fft_dispatch_interleave_3dnow2(FFTComplex *z, int nbits); -void ff_fft_calc_3dn2(FFTContext *s, FFTComplex *z) +void ff_fft_calc_3dnow2(FFTContext *s, FFTComplex *z) { int n = 1<<s->nbits; int i; - ff_fft_dispatch_interleave_3dn2(z, s->nbits); + ff_fft_dispatch_interleave_3dnow2(z, s->nbits); __asm__ volatile("femms"); if(n <= 8) for(i=0; i<n; i+=2) FFSWAP(FFTSample, z[i].im, z[i+1].re); } -void ff_imdct_half_3dn2(FFTContext *s, FFTSample *output, const FFTSample *input) +void ff_imdct_half_3dnow2(FFTContext *s, FFTSample *output, const FFTSample *input) { x86_reg j, k; long n = s->mdct_size; @@ -101,7 +101,7 @@ void ff_imdct_half_3dn2(FFTContext *s, FFTSample *output, const FFTSample *input ); } - ff_fft_dispatch_3dn2(z, s->nbits); + ff_fft_dispatch_3dnow2(z, s->nbits); #define CMUL(j,mm0,mm1)\ "movq (%2,"#j",2), %%mm6 \n"\ @@ -144,13 +144,13 @@ void ff_imdct_half_3dn2(FFTContext *s, FFTSample *output, const FFTSample *input __asm__ volatile("femms"); } -void ff_imdct_calc_3dn2(FFTContext *s, FFTSample *output, const FFTSample *input) +void ff_imdct_calc_3dnow2(FFTContext *s, FFTSample *output, const FFTSample *input) { x86_reg j, k; long n = s->mdct_size; long n4 = n >> 2; - ff_imdct_half_3dn2(s, output+n4, input); + ff_imdct_half_3dnow2(s, output+n4, input); j = -n; k = n-8; |