ref: fd446a1f697d23caca8faf9a424acccd37f6c262
parent: 5c5a2332575268fa5e5089a3e584bee4741f8ec9
parent: b8eeda1740d196ccc000b3347b0d3973f5a60ae3
author: zhilwang <[email protected]>
date: Mon May 5 04:45:48 EDT 2014
Merge pull request #783 from mstorsjo/win64-clobber 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