diff options
author | Andy Polyakov <appro@openssl.org> | 2010-01-24 14:54:24 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2010-01-24 14:54:24 +0000 |
commit | 7676eebf4297c8ccb27a6517eb8529cbd187f17a (patch) | |
tree | 8668e00dc37bdb3b027f34331e810578aaf7d02c /crypto/perlasm/ppc-xlate.pl | |
parent | 21a5c040e5398b7d4ec374168815f88c94a102d6 (diff) |
OPENSSL_cleanse to accept zero length parameter [matching C implementation].
Diffstat (limited to 'crypto/perlasm/ppc-xlate.pl')
-rwxr-xr-x | crypto/perlasm/ppc-xlate.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/perlasm/ppc-xlate.pl b/crypto/perlasm/ppc-xlate.pl index 755524c9cf..4579671c97 100755 --- a/crypto/perlasm/ppc-xlate.pl +++ b/crypto/perlasm/ppc-xlate.pl @@ -101,6 +101,13 @@ my $bnelr = sub { " .long ".sprintf "0x%x",19<<26|$bo<<21|2<<16|16<<1 : " bclr $bo,2"; }; +my $beqlr = sub { + my $f = shift; + my $bo = $f=~/-/ ? 12+2 : 12; # optional "not to be taken" hint + ($flavour =~ /linux/) ? # GNU as doesn't allow most recent hints + " .long ".sprintf "0x%X",19<<26|$bo<<21|2<<16|16<<1 : + " bclr $bo,2"; +}; # GNU assembler can't handle extrdi rA,rS,16,48, or when sum of last two # arguments is 64, with "operand out of range" error. my $extrdi = sub { |