[FFmpeg-cvslog] x86: float_dsp: fix ff_vector_fmac_scalar_avx() on Win64

Justin Ruggles git at videolan.org
Sat Sep 8 13:01:29 CEST 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Fri Aug  3 17:38:49 2012 -0400| [73275259978e77f3dc52bfd01712249d96a585fe] | committer: Justin Ruggles

x86: float_dsp: fix ff_vector_fmac_scalar_avx() on Win64

The SWAP macro does not work for explicit xmm/ymm usage, so instead just move
the scalar value from xmm2 to xmm0.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=73275259978e77f3dc52bfd01712249d96a585fe
---

 libavutil/x86/float_dsp.asm |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavutil/x86/float_dsp.asm b/libavutil/x86/float_dsp.asm
index 934dac0..5b9b444 100644
--- a/libavutil/x86/float_dsp.asm
+++ b/libavutil/x86/float_dsp.asm
@@ -60,12 +60,12 @@ cglobal vector_fmac_scalar, 3,3,3, dst, src, len
 %else
 cglobal vector_fmac_scalar, 4,4,3, dst, src, mul, len
 %endif
-%if WIN64
-    SWAP 0, 2
-%endif
 %if ARCH_X86_32
     VBROADCASTSS m0, mulm
 %else
+%if WIN64
+    mova       xmm0, xmm2
+%endif
     shufps     xmm0, xmm0, 0
 %if cpuflag(avx)
     vinsertf128  m0, m0, xmm0, 1



More information about the ffmpeg-cvslog mailing list