chiark / gitweb /
cleanup: Various aesthetic fiddlings of little consequence.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 4 Apr 2006 16:17:25 +0000 (17:17 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 4 Apr 2006 16:17:25 +0000 (17:17 +0100)
ec-info.c
mpmont-exp.c
mpreduce.c
mptypes.c
mpx.c
tests/mpreduce

index 925ff07dcbbaab6b8f3b1c33eb22e78fa8c6895b..3a5b0962389247f0e346f836ef6c912bd9b5db2e 100644 (file)
--- a/ec-info.c
+++ b/ec-info.c
@@ -571,7 +571,7 @@ int main(int argc, char *argv[])
       e = ec_checkinfo(&ei, gr);
       ec_freeinfo(&ei);
       if (e) {
       e = ec_checkinfo(&ei, gr);
       ec_freeinfo(&ei);
       if (e) {
-       printf("  [%s fails: %s]", ee->name, e);
+       printf(" [%s fails: %s]", ee->name, e);
        ok = 0;
       } else
        printf(" %s", ee->name);
        ok = 0;
       } else
        printf(" %s", ee->name);
index 0caf11838170b50b9fb819d9d54d5c45a6ada496..301a0d8e9d36cdc0c6ba8fac38537b1e141e3177 100644 (file)
@@ -130,7 +130,6 @@ static int texp(dstr *v)
   return ok;
 }
 
   return ok;
 }
 
-
 static test_chunk tests[] = {
   { "exp", texp, { &type_mp, &type_mp, &type_mp, &type_mp, 0 } },
   { 0, 0, { 0 } },
 static test_chunk tests[] = {
   { "exp", texp, { &type_mp, &type_mp, &type_mp, &type_mp, 0 } },
   { 0, 0, { 0 } },
index d99ff16ed4c492d4b5086864de2e15d958bf4bbb..0f20ed801c862cc1ceec268ac3f3dee6f0e8263f 100644 (file)
@@ -285,9 +285,9 @@ mp *mpreduce_do(mpreduce *r, mp *d, mp *x)
        *vl = 0;
        run(r->iv, il, vl, z);
 #ifdef DEBUG
        *vl = 0;
        run(r->iv, il, vl, z);
 #ifdef DEBUG
-  MP_PRINTX("x", x);
-  mp_div(0, &_rr, x, r->p);
-  assert(MP_EQ(_r, _rr));
+       MP_PRINTX("x", x);
+       mp_div(0, &_rr, x, r->p);
+       assert(MP_EQ(_r, _rr));
 #endif
       }
     }
 #endif
       }
     }
@@ -297,9 +297,9 @@ mp *mpreduce_do(mpreduce *r, mp *d, mp *x)
        *vl &= ((1 << r->s) - 1);
        run(r->iv + r->in, il + r->in, vl, z);
 #ifdef DEBUG
        *vl &= ((1 << r->s) - 1);
        run(r->iv + r->in, il + r->in, vl, z);
 #ifdef DEBUG
-  MP_PRINTX("x", x);
-  mp_div(0, &_rr, x, r->p);
-  assert(MP_EQ(_r, _rr));
+       MP_PRINTX("x", x);
+       mp_div(0, &_rr, x, r->p);
+       assert(MP_EQ(_r, _rr));
 #endif
       }
     }
 #endif
       }
     }
index 922eae4a13423f1c951f9d4a87ff0b5a96917239..613e2143da6f794ab12480e2f1419a1a48614ba7 100644 (file)
--- a/mptypes.c
+++ b/mptypes.c
@@ -60,7 +60,7 @@
   typedef uintmax_t umax;
 # define P_UMAX PRIuMAX
 #elif defined(ULLONG_MAX)
   typedef uintmax_t umax;
 # define P_UMAX PRIuMAX
 #elif defined(ULLONG_MAX)
-  __extension__ typedef unsigned long long umax;
+  EXT typedef unsigned long long umax;
 # define P_UMAX "llu"
 #else
   typedef unsigned long umax;
 # define P_UMAX "llu"
 #else
   typedef unsigned long umax;
diff --git a/mpx.c b/mpx.c
index 5fc522a3c0dc59f7d565141a2fce4480cba7fed4..c6a23bed94b90b6529ffc0a62789075dda92ae46 100644 (file)
--- a/mpx.c
+++ b/mpx.c
@@ -995,9 +995,7 @@ void mpx_umul(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl,
  */
 
 void mpx_umuln(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl, mpw m)
  */
 
 void mpx_umuln(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl, mpw m)
-{
-  MPX_UMULN(dv, dvl, av, avl, m);
-}
+  { MPX_UMULN(dv, dvl, av, avl, m); }
 
 /* --- @mpx_umlan@ --- *
  *
 
 /* --- @mpx_umlan@ --- *
  *
@@ -1012,9 +1010,7 @@ void mpx_umuln(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl, mpw m)
  */
 
 void mpx_umlan(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl, mpw m)
  */
 
 void mpx_umlan(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl, mpw m)
-{
-  MPX_UMLAN(dv, dvl, av, avl, m);
-}
+  { MPX_UMLAN(dv, dvl, av, avl, m); }
 
 /* --- @mpx_usqr@ --- *
  *
 
 /* --- @mpx_usqr@ --- *
  *
index 1734b18be55e9a50128549cfdd41305ecf1c06ba..9a74b996e4ec0af18ea76e9df8520e34da48458e 100644 (file)
@@ -13,7 +13,7 @@ reduce {
 }
 
 modexp {
 }
 
 modexp {
-  0xfffffffdffffffffffffffffffffffff 0xfffffffdfffffffffffffffffffffffe 0 1; 
+  0xfffffffdffffffffffffffffffffffff 0xfffffffdfffffffffffffffffffffffe 0 1;
   0xfffffffdffffffffffffffffffffffff 2 
     0xfffffffdfffffffffffffffffffffffe 1;
   0xfffffffdffffffffffffffffffffffff 2 
   0xfffffffdffffffffffffffffffffffff 2 
     0xfffffffdfffffffffffffffffffffffe 1;
   0xfffffffdffffffffffffffffffffffff 2