summaryrefslogtreecommitdiffstats
path: root/crypto/bn/asm/via-mont.pl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-03-07 15:41:33 +0100
committerRichard Levitte <levitte@openssl.org>2016-03-07 18:25:56 +0100
commit6bd7a4d96c47068c63cbd2ca93f501816dc453c1 (patch)
tree8f47004988a5aff04383e5aadf0e9723dccc6c5e /crypto/bn/asm/via-mont.pl
parent8a67946e5bf1cd0fe0020e0f28cbf84642ec4132 (diff)
Unified - adapt the generation of bignum assembler to use GENERATE
This gets rid of the BEGINRAW..ENDRAW sections in crypto/bn/build.info. This also moves the assembler generating perl scripts to take the output file name as last command line argument, where necessary. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/bn/asm/via-mont.pl')
-rw-r--r--crypto/bn/asm/via-mont.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/bn/asm/via-mont.pl b/crypto/bn/asm/via-mont.pl
index c046a514c8..8cf4dde4d5 100644
--- a/crypto/bn/asm/via-mont.pl
+++ b/crypto/bn/asm/via-mont.pl
@@ -81,6 +81,9 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
push(@INC,"${dir}","${dir}../../perlasm");
require "x86asm.pl";
+$output = pop;
+open STDOUT,">$output";
+
&asm_init($ARGV[0],"via-mont.pl");
# int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np,const BN_ULONG *n0, int num);
@@ -240,3 +243,5 @@ $sp=&DWP(28,"esp");
&asciz("Padlock Montgomery Multiplication, CRYPTOGAMS by <appro\@openssl.org>");
&asm_finish();
+
+close STDOUT;