diff options
author | Andy Polyakov <appro@openssl.org> | 2012-10-25 12:03:41 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2012-10-25 12:03:41 +0000 |
commit | 8ed11a815ee62472fc197d1a1a3dcdb6c0681342 (patch) | |
tree | d73d0675e21190a232844b6c3a8f9474858e9d2b /crypto | |
parent | 38049c2bb9f609d767cfbda8d5959e227132fcc9 (diff) |
[aes|cmll]t4-sparcv9.pl: unify argument handling.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/aes/asm/aest4-sparcv9.pl | 5 | ||||
-rw-r--r-- | crypto/camellia/asm/cmllt4-sparcv9.pl | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/crypto/aes/asm/aest4-sparcv9.pl b/crypto/aes/asm/aest4-sparcv9.pl index cd668edb1d..558acd603b 100644 --- a/crypto/aes/asm/aest4-sparcv9.pl +++ b/crypto/aes/asm/aest4-sparcv9.pl @@ -68,10 +68,7 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1; push(@INC,"${dir}","${dir}../../perlasm"); require "sparcv9_modes.pl"; -$bits=32; -for (@ARGV) { $bits=64 if (/\-m64/ || /\-xarch\=v9/); } -if ($bits==64) { $::bias=2047; $::frame=192; $::size_t_cc="%xcc"; } -else { $::bias=0; $::frame=112; $::size_t_cc="%icc"; } +&asm_init(@ARGV); $::evp=1; # if $evp is set to 0, script generates module with # AES_[en|de]crypt, AES_set_[en|de]crypt_key and AES_cbc_encrypt entry diff --git a/crypto/camellia/asm/cmllt4-sparcv9.pl b/crypto/camellia/asm/cmllt4-sparcv9.pl index fea0338dfa..a813168b42 100644 --- a/crypto/camellia/asm/cmllt4-sparcv9.pl +++ b/crypto/camellia/asm/cmllt4-sparcv9.pl @@ -46,10 +46,7 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1; push(@INC,"${dir}","${dir}../../perlasm"); require "sparcv9_modes.pl"; -$bits=32; -for (@ARGV) { $bits=64 if (/\-m64/ || /\-xarch\=v9/); } -if ($bits==64) { $::bias=2047; $::frame=192; $::size_t_cc="%xcc"; } -else { $::bias=0; $::frame=112; $::size_t_cc="%icc"; } +&asm_init(@ARGV); $::evp=1; # if $evp is set to 0, script generates module with # Camellia_[en|de]crypt, Camellia_set_key and Camellia_cbc_encrypt |