diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-08-02 00:55:34 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-11-02 17:05:29 +0100 |
commit | 0a7a94f2e53bcdb8ac5857eb8c67c16f6f1d0f2f (patch) | |
tree | b736ff407825a764a4e1d017ed6afefa802fb0f3 /libavcodec/x86/fft.asm | |
parent | 9a07c1332cfe092b57b5758f22b686ca58806c60 (diff) | |
download | ffmpeg-0a7a94f2e53bcdb8ac5857eb8c67c16f6f1d0f2f.tar.gz |
x86: Refactor PSWAPD fallback implementations and port to cpuflags
Diffstat (limited to 'libavcodec/x86/fft.asm')
-rw-r--r-- | libavcodec/x86/fft.asm | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/libavcodec/x86/fft.asm b/libavcodec/x86/fft.asm index 8c69f1f771..111f3229b4 100644 --- a/libavcodec/x86/fft.asm +++ b/libavcodec/x86/fft.asm @@ -105,7 +105,8 @@ SECTION_TEXT pfadd %5, %4 ; {t6,t5} pxor %3, [ps_m1p1] ; {t8,t7} mova %6, %1 - PSWAPD %3, %3 + movd [r0+12], %3 + punpckhdq %3, [r0+8] pfadd %1, %5 ; {r0,i0} pfsub %6, %5 ; {r2,i2} mova %4, %2 @@ -498,19 +499,6 @@ fft8 %+ SUFFIX: %endmacro %if ARCH_X86_32 -%macro PSWAPD 2 -%if cpuflag(3dnowext) - pswapd %1, %2 -%elifidn %1, %2 - movd [r0+12], %1 - punpckhdq %1, [r0+8] -%else - movq %1, %2 - psrlq %1, 32 - punpckldq %1, %2 -%endif -%endmacro - INIT_MMX 3dnowext FFT48_3DNOW |