summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-01-28 13:32:53 -0300
committerJames Almer <jamrial@gmail.com>2016-01-28 13:35:15 -0300
commitc79252897096b89376bcf17a5bca6cdf8d21b6a0 (patch)
tree817a87fb6d92a36271558552729a3df5264b2879 /libavcodec
parent14a90c9ef09a4b046500dceab5ca1875e330a376 (diff)
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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/x86/imdct36.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/x86/imdct36.asm b/libavcodec/x86/imdct36.asm
index 7218f06ba5..409b2c5796 100644
--- a/libavcodec/x86/imdct36.asm
+++ b/libavcodec/x86/imdct36.asm
@@ -143,6 +143,12 @@ SECTION .text
%endmacro
%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
movss [%3 ], %1
movss [%3 + 2*%4], %2
@@ -150,6 +156,7 @@ SECTION .text
movss [%3 + %4], %1
movhlps %2, %1
movss [%3 + 3*%4], %2
+%endif
%endmacro
%macro LOAD 4