diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-08-03 17:38:49 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-09-07 14:49:10 -0400 |
commit | 73275259978e77f3dc52bfd01712249d96a585fe (patch) | |
tree | e683aa61b3b2243da1d60eb72c80ec3a74c69749 | |
parent | 1169f0d0afc0454633cfcfad73643f0458521c67 (diff) | |
download | ffmpeg-73275259978e77f3dc52bfd01712249d96a585fe.tar.gz |
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.
-rw-r--r-- | libavutil/x86/float_dsp.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/x86/float_dsp.asm b/libavutil/x86/float_dsp.asm index 934dac08d9..5b9b444676 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 |