x86/imdct36: use extractps inside the STORE macro

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by: Henrik Gramner <henrik@gramner.com>
Signed-off-by: James Almer <jamrial@gmail.com>
pull/173/head
James Almer 9 years ago
parent 14a90c9ef0
commit c792528970
  1. 7
      libavcodec/x86/imdct36.asm

@ -143,6 +143,12 @@ SECTION .text
%endmacro %endmacro
%macro STORE 4 %macro STORE 4
%if cpuflag(sse4)
movss [%3 ], %1
extractps [%3 + %4], %1, 1
extractps [%3 + 2*%4], %1, 2
extractps [%3 + 3*%4], %1, 3
%else
movhlps %2, %1 movhlps %2, %1
movss [%3 ], %1 movss [%3 ], %1
movss [%3 + 2*%4], %2 movss [%3 + 2*%4], %2
@ -150,6 +156,7 @@ SECTION .text
movss [%3 + %4], %1 movss [%3 + %4], %1
movhlps %2, %1 movhlps %2, %1
movss [%3 + 3*%4], %2 movss [%3 + 3*%4], %2
%endif
%endmacro %endmacro
%macro LOAD 4 %macro LOAD 4

Loading…
Cancel
Save