Skip to content

Commit

Permalink
x86/float_dsp: remove duplicated code from vector_dmul_scalar
Browse files Browse the repository at this point in the history
Use the xm# and ym# aliases as they remain in sync with m# after a SWAP.
No actual changes to the assembly.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
jamrial authored and michaelni committed Apr 19, 2014
1 parent c91a798 commit 3b06208
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions libavutil/x86/float_dsp.asm
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,11 @@ cglobal vector_dmul_scalar, 4,4,3, dst, src, mul, len
VBROADCASTSD m0, mulm
%else
%if WIN64
movlhps xmm2, xmm2
%if cpuflag(avx)
vinsertf128 ymm2, ymm2, xmm2, 1
%endif
SWAP 0, 2
%else
movlhps xmm0, xmm0
%if cpuflag(avx)
vinsertf128 ymm0, ymm0, xmm0, 1
%endif
movlhps xm0, xm0
%if cpuflag(avx)
vinsertf128 ym0, ym0, xm0, 1
%endif
%endif
lea lenq, [lend*8-2*mmsize]
Expand Down

0 comments on commit 3b06208

Please sign in to comment.