ref: b8eeda1740d196ccc000b3347b0d3973f5a60ae3
parent: e4a9c7f8e41b1ffd2fefe6f91b65e4f74b316349
author: Martin Storsjö <[email protected]>
date: Sun May 4 11:45:51 EDT 2014
Properly back up and restore XMM registers on win64 in WelsSampleSadFour4x4_sse2
--- a/codec/common/x86/satd_sad.asm
+++ b/codec/common/x86/satd_sad.asm
@@ -2367,6 +2367,7 @@
WELS_EXTERN WelsSampleSadFour4x4_sse2
%assign push_num 0
LOAD_5_PARA
+ PUSH_XMM 8
SIGN_EXTENSION r1, r1d
SIGN_EXTENSION r3, r3d
movd xmm0, [r0]
@@ -2428,6 +2429,7 @@
punpckldq xmm2, xmm3
punpcklqdq xmm1, xmm2
movdqa [r4],xmm1
+ POP_XMM
LOAD_5_PARA_POP
ret