summaryrefslogtreecommitdiff
path: root/mpz
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2000-05-08 12:19:10 +0200
committertege <tege@gmplib.org>2000-05-08 12:19:10 +0200
commitf79e78fa9535fee740047dd446ad541c35a6244d (patch)
treed50c74331793799c40d8d0fa3ae4acfe51928903 /mpz
parentb34b6071cca8557a2ecd9fb6ce3e32026afcf35d (diff)
downloadgmp-f79e78fa9535fee740047dd446ad541c35a6244d.tar.gz
DEBUG => POWM_DEBUG.
Diffstat (limited to 'mpz')
-rw-r--r--mpz/powm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mpz/powm.c b/mpz/powm.c
index f0b910df9..a7331c0fd 100644
--- a/mpz/powm.c
+++ b/mpz/powm.c
@@ -135,7 +135,7 @@ pow (base, e, mod, res)
int sh;
int use_redc;
-#ifdef DEBUG
+#ifdef POWM_DEBUG
mpz_t exp;
mpz_init (exp);
#endif
@@ -235,7 +235,7 @@ pow (base, e, mod, res)
}
else
c = c >> sh;
-#ifdef DEBUG
+#ifdef POWM_DEBUG
printf ("-1/m mod 2^%u = %lu\n", BITS_PER_MP_LIMB, invm);
mpz_set_ui (exp, c);
#endif
@@ -257,7 +257,7 @@ pow (base, e, mod, res)
}
}
-#ifdef DEBUG
+#ifdef POWM_DEBUG
printf ("x^"); mpz_out_str (0, 10, exp);
printf ("*2^%u mod m = ", n * BITS_PER_MP_LIMB); mpz_out_str (0, 10, xx);
putchar ('\n');
@@ -308,7 +308,7 @@ pow (base, e, mod, res)
}
}
-#ifdef DEBUG
+#ifdef POWM_DEBUG
printf ("l=%u c=%lu\n", l, c);
mpz_mul_2exp (exp, exp, k);
mpz_add_ui (exp, exp, c);
@@ -352,7 +352,7 @@ pow (base, e, mod, res)
mpz_mod (xx, xx, mod);
}
}
-#ifdef DEBUG
+#ifdef POWM_DEBUG
printf ("x^"); mpz_out_str (0, 10, exp);
printf ("*2^%u mod m = ", n * BITS_PER_MP_LIMB); mpz_out_str (0, 10, xx);
putchar ('\n');