提交 1598af9a 编写于 作者: A Andy Polyakov

sha512-ppc.pl: minimize stack frame.

上级 06b3b640
......@@ -91,10 +91,6 @@ if ($output =~ /512/) {
$FRAME=32*$SIZE_T+16*$SZ;
$LOCALS=6*$SIZE_T;
if ($SZ==8 && $SIZE_T==4) {
$FRAME+=16*$SZ;
$XOFF=$LOCALS+16*$SZ;
}
$sp ="r1";
$toc="r2";
......@@ -436,6 +432,8 @@ ___
# (*) ~1/3 of -m64 result [and ~20% better than -m32 code generated
# by xlc-12.1]
my $XOFF=$LOCALS;
my @V=map("r$_",(16..31)); # A..H
my ($s0,$s1,$t0,$t1,$t2,$t3,$a0,$a1,$a2,$a3)=map("r$_",(0,5,6,8..12,14,15));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册