crypto/sha/asm/sha1-x86_64.pl: comply with Win64 ABI.

This commit is contained in:
Andy Polyakov 2013-07-31 23:53:49 +02:00
parent 591c55a981
commit 04b80f4003

View File

@ -745,7 +745,7 @@ $code.=<<___;
mov %rdi,$ctx # reassigned argument mov %rdi,$ctx # reassigned argument
mov %rsi,$inp # reassigned argument mov %rsi,$inp # reassigned argument
mov %rdx,$num # reassigned argument mov %rdx,$num # reassigned argument
vzeroall vzeroupper
shl \$6,$num shl \$6,$num
add $inp,$num add $inp,$num
@ -1038,7 +1038,7 @@ ___
&Xtail_avx(\&body_20_39); &Xtail_avx(\&body_20_39);
$code.=<<___; $code.=<<___;
vzeroall vzeroupper
add 0($ctx),$A # update context add 0($ctx),$A # update context
add 4($ctx),@T[0] add 4($ctx),@T[0]