projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change manpage style slightly.
[u/mdw/catacomb]
/
mpcrt.c
diff --git
a/mpcrt.c
b/mpcrt.c
index
51d9b68
..
de61d4b
100644
(file)
--- a/
mpcrt.c
+++ b/
mpcrt.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: mpcrt.c,v 1.
2 1999/12/10 23:22:3
2 mdw Exp $
+ * $Id: mpcrt.c,v 1.
3 2000/10/08 12:11:2
2 mdw Exp $
*
* Chinese Remainder Theorem computations (Gauss's algorithm)
*
*
* Chinese Remainder Theorem computations (Gauss's algorithm)
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: mpcrt.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: mpcrt.c,v $
+ * Revision 1.3 2000/10/08 12:11:22 mdw
+ * Use @MP_EQ@ instead of @MP_CMP@.
+ *
* Revision 1.2 1999/12/10 23:22:32 mdw
* Interface changes for suggested destinations. Use Barrett reduction.
*
* Revision 1.2 1999/12/10 23:22:32 mdw
* Interface changes for suggested destinations. Use Barrett reduction.
*
@@
-223,7
+226,7
@@
static int verify(size_t n, dstr *v)
mpcrt_create(&c, m, n, 0);
b = mpcrt_solve(&c, MP_NEW, r);
mpcrt_create(&c, m, n, 0);
b = mpcrt_solve(&c, MP_NEW, r);
- if (
MP_CMP(a, !=
, b)) {
+ if (
!MP_EQ(a
, b)) {
fputs("\n*** failed\n", stderr);
fputs("n = ", stderr);
mp_writefile(c.mb.m, stderr, 10);
fputs("\n*** failed\n", stderr);
fputs("n = ", stderr);
mp_writefile(c.mb.m, stderr, 10);