summaryrefslogtreecommitdiff
path: root/gen-psqr.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2004-03-04 01:30:24 +0100
committerKevin Ryde <user42@zip.com.au>2004-03-04 01:30:24 +0100
commitd570399b655f9466e8e7c80cc13c7462f2196a94 (patch)
treee911081ef684bf634af1383162be1b7d1718d2d8 /gen-psqr.c
parent80f9f491f5bd47e2a66a8dc57904f1c2614e64b0 (diff)
downloadgmp-d570399b655f9466e8e7c80cc13c7462f2196a94.tar.gz
* gen-psqr.c (print): Add CNST_LIMB in PERFSQR_MOD_TEST, for benefit
of K&R.
Diffstat (limited to 'gen-psqr.c')
-rw-r--r--gen-psqr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gen-psqr.c b/gen-psqr.c
index 634548c7a..696fcbe45 100644
--- a/gen-psqr.c
+++ b/gen-psqr.c
@@ -1,6 +1,6 @@
/* Generate perfect square testing data.
-Copyright 2002 Free Software Foundation, Inc.
+Copyright 2002, 2004 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -504,7 +504,7 @@ print (int limb_bits, int nail_bits)
printf (" /* %5.2f%% */ \\\n",
(1.0 - factor[i].fraction) * 100.0);
- printf (" PERFSQR_MOD_%d (r, %2d, CNST_LIMB(0x",
+ printf (" PERFSQR_MOD_%d (r, CNST_LIMB(%2d), CNST_LIMB(0x",
factor[i].divisor <= limb_bits ? 1 : 2,
factor[i].divisor);
mpz_out_str (0, 16, factor[i].inverse);