Unified - adapt the generation of bignum assembler to use GENERATE
[openssl.git] / crypto / bn / asm / bn-586.pl
index 332ef3e91d621d7f9f4bb20952795c4c04c0acd2..3f34abef9e38c0d52632b86037f24bfe7e15ead5 100644 (file)
@@ -4,6 +4,9 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
 push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 
 push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 
+$output = pop;
+open STDOUT,">$output";
+
 &asm_init($ARGV[0],$0);
 
 $sse2=0;
 &asm_init($ARGV[0],$0);
 
 $sse2=0;
@@ -21,6 +24,8 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
 
 &asm_finish();
 
 
 &asm_finish();
 
+close STDOUT;
+
 sub bn_mul_add_words
        {
        local($name)=@_;
 sub bn_mul_add_words
        {
        local($name)=@_;
@@ -771,4 +776,3 @@ sub bn_sub_part_words
 
        &function_end($name);
        }
 
        &function_end($name);
        }
-