summaryrefslogtreecommitdiff
path: root/gen-jacobitab.c
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2010-05-07 00:41:24 +0200
committerTorbjorn Granlund <tege@gmplib.org>2010-05-07 00:41:24 +0200
commit66c3ec7eba4eb10589276e977425fa5a9fe347b7 (patch)
tree90a988d2ddb86b31a67f4231a4236518a0638968 /gen-jacobitab.c
parent204bc54967df4b982fa8731a4f5a2f89094bcbf0 (diff)
downloadgmp-66c3ec7eba4eb10589276e977425fa5a9fe347b7.tar.gz
Clean up some spacing.
Diffstat (limited to 'gen-jacobitab.c')
-rw-r--r--gen-jacobitab.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gen-jacobitab.c b/gen-jacobitab.c
index 261e5c074..5ff55999e 100644
--- a/gen-jacobitab.c
+++ b/gen-jacobitab.c
@@ -44,7 +44,7 @@ static const struct
/* 10 */ { 3, 0 },
/* 11 */ { 3, 2 },
/* 12 */ { 3, 3 }, /* d = 0 */
-
+
};
#define JACOBI_A(bits) (decode_table[(bits)>>1].a)
#define JACOBI_B(bits) (decode_table[(bits)>>1].b)
@@ -56,7 +56,7 @@ static unsigned
encode (unsigned a, unsigned b, unsigned d)
{
unsigned i;
-
+
assert (d < 2);
assert (a < 4);
assert (b < 4);
@@ -87,7 +87,7 @@ main (int argc, char **argv)
q = bits & 3;
d = (bits >> 2) & 1;
-
+
e = JACOBI_E (bits >> 3);
a = JACOBI_A (bits >> 3);
b = JACOBI_B (bits >> 3);
@@ -108,10 +108,10 @@ main (int argc, char **argv)
e ^= (q & (b >> 1)) ^ (q >> 1);
b = (b - q * a) & 3;
}
-
+
printf("%2d,", (encode (a, b, d) << 1) | e);
}
printf("\n");
-
+
return 0;
}