projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use @MP_EQ@ instead of @MP_CMP@.
[u/mdw/catacomb]
/
mpx-ksqr.c
diff --git
a/mpx-ksqr.c
b/mpx-ksqr.c
index
226b99a
..
4aa84dd
100644
(file)
--- a/
mpx-ksqr.c
+++ b/
mpx-ksqr.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: mpx-ksqr.c,v 1.
3 2000/06/17 11:42:54
mdw Exp $
+ * $Id: mpx-ksqr.c,v 1.
5 2000/10/08 12:11:01
mdw Exp $
*
* Karatsuba-based squaring algorithm
*
*
* Karatsuba-based squaring algorithm
*
@@
-30,6
+30,12
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: mpx-ksqr.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: mpx-ksqr.c,v $
+ * Revision 1.5 2000/10/08 12:11:01 mdw
+ * Use @mpx_ueq@ instead of @MPX_UCMP@.
+ *
+ * Revision 1.4 2000/07/29 17:04:02 mdw
+ * Remove useless header `mpscan.h'.
+ *
* Revision 1.3 2000/06/17 11:42:54 mdw
* Moved the Karatsuba macros into a separate file for better sharing.
* Fixed some comments. Use an improved technique so that all the
* Revision 1.3 2000/06/17 11:42:54 mdw
* Moved the Karatsuba macros into a separate file for better sharing.
* Fixed some comments. Use an improved technique so that all the
@@
-160,8
+166,6
@@
void mpx_ksqr(mpw *dv, mpw *dvl,
#include <mLib/alloc.h>
#include <mLib/testrig.h>
#include <mLib/alloc.h>
#include <mLib/testrig.h>
-#include "mpscan.h"
-
#define ALLOC(v, vl, sz) do { \
size_t _sz = (sz); \
mpw *_vv = xmalloc(MPWS(_sz)); \
#define ALLOC(v, vl, sz) do { \
size_t _sz = (sz); \
mpw *_vv = xmalloc(MPWS(_sz)); \
@@
-206,7
+210,7
@@
static int usqr(dstr *v)
ALLOC(s, sl, 2 * m + 32);
mpx_ksqr(d, dl, a, al, s, sl);
ALLOC(s, sl, 2 * m + 32);
mpx_ksqr(d, dl, a, al, s, sl);
- if (
MPX_UCMP(d, dl, !=
, c, cl)) {
+ if (
!mpx_ueq(d, dl
, c, cl)) {
fprintf(stderr, "\n*** usqr failed\n");
dumpmp(" a", a, al);
dumpmp("expected", c, cl);
fprintf(stderr, "\n*** usqr failed\n");
dumpmp(" a", a, al);
dumpmp("expected", c, cl);