From fbba0d7c2165347cbab96bd5111c1732fb9f395b Mon Sep 17 00:00:00 2001 From: weidai Date: Sun, 29 Mar 2009 21:41:30 +0000 Subject: fixed Panama x64 MASM code not saving RDI git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@462 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- x64masm.asm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'x64masm.asm') diff --git a/x64masm.asm b/x64masm.asm index f27c002..c7ff836 100755 --- a/x64masm.asm +++ b/x64masm.asm @@ -1341,7 +1341,8 @@ ret Sosemanuk_OperateKeystream ENDP Panama_SSE2_Pull PROC FRAME -alloc_stack(2*16+8) +rex_push_reg rdi +alloc_stack(2*16) save_xmm128 xmm6, 0h save_xmm128 xmm7, 10h .endprolog @@ -1555,7 +1556,8 @@ movdqa xmmword ptr [rdx+0*16], xmm0 label5: movdqa xmm6, [rsp + 0h] movdqa xmm7, [rsp + 10h] -add rsp, 2*16+8 +add rsp, 2*16 +pop rdi ret Panama_SSE2_Pull ENDP -- cgit v1.2.1