summaryrefslogtreecommitdiff
path: root/libavresample/x86
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-06-26 16:50:10 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-07-27 14:21:32 -0400
commite9da9a311199c26e2ba1407a06c4b241148557b7 (patch)
tree7b00493c8845b7bcde8de8fbb4041f28e65adb31 /libavresample/x86
parent743f07062a89a484e1be796da3eaa5e5047aee7d (diff)
lavr: x86: improve non-SSE4 version of S16_TO_S32_SX macro
Removes a false dependency on existing contents of the 2nd dst register, giving better performance for OOE.
Diffstat (limited to 'libavresample/x86')
-rw-r--r--libavresample/x86/util.asm3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavresample/x86/util.asm b/libavresample/x86/util.asm
index 501f662d43..ca7fde513a 100644
--- a/libavresample/x86/util.asm
+++ b/libavresample/x86/util.asm
@@ -26,7 +26,8 @@
pmovsxwd m%1, m%1
SWAP %1, %2
%else
- punpckhwd m%2, m%1
+ mova m%2, m%1
+ punpckhwd m%2, m%2
punpcklwd m%1, m%1
psrad m%2, 16
psrad m%1, 16