sha512-ppc.pl: minimize stack frame.
authorAndy Polyakov <appro@openssl.org>
Tue, 22 Jan 2013 20:09:14 +0000 (21:09 +0100)
committerAndy Polyakov <appro@openssl.org>
Tue, 22 Jan 2013 20:09:14 +0000 (21:09 +0100)
crypto/sha/asm/sha512-ppc.pl

index e9677f8..125a19d 100755 (executable)
@@ -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));