Commit 0e831db0 authored by David Benjamin's avatar David Benjamin Committed by Matt Caswell
Browse files

Fix up bn_prime.pl formatting.



Align at 5 characters, not 4. There are 5-digit numbers in the output.
Also avoid emitting an extra blank line and trailing whitespace.

Reviewed-by: default avatarKurt Roeckx <kurt@openssl.org>
Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
parent 609b0852
Loading
Loading
Loading
Loading
+256 −257
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@ typedef unsigned short prime_t;
# define NUMPRIMES 2048

static const prime_t primes[2048] = {

        2,     3,     5,     7,    11,    13,    17,    19,
       23,    29,    31,    37,    41,    43,    47,    53,
       59,    61,    67,    71,    73,    79,    83,    89,
+3 −3
Original line number Diff line number Diff line
@@ -38,9 +38,9 @@ loop: while ($#primes < $num-1) {
print "typedef unsigned short prime_t;\n";
printf "# define NUMPRIMES %d\n\n", $num;

printf "static const prime_t primes[%d] = {\n", $num;
printf "static const prime_t primes[%d] = {", $num;
for (my $i = 0; $i <= $#primes; $i++) {
    printf "\n   " if ($i % 8) == 0;
    printf "%4d, ", $primes[$i];
    printf " %5d,", $primes[$i];
}
print "\n};\n";