Use @MP_EQ@ instead of @MP_CMP@. Remove vestages of @primorial@.
[u/mdw/catacomb] / mpx-kmul.c
index dd492ad..eaa0848 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: mpx-kmul.c,v 1.4 2000/06/17 11:42:11 mdw Exp $
+ * $Id: mpx-kmul.c,v 1.6 2000/10/08 12:11:01 mdw Exp $
  *
  * Karatsuba's multiplication algorithm
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: mpx-kmul.c,v $
+ * Revision 1.6  2000/10/08 12:11:01  mdw
+ * Use @mpx_ueq@ instead of @MPX_UCMP@.
+ *
+ * Revision 1.5  2000/07/29 17:04:02  mdw
+ * Remove useless header `mpscan.h'.
+ *
  * Revision 1.4  2000/06/17 11:42:11  mdw
  * Moved the Karatsuba macros into a separate file for better sharing.
  * Fixed some comments.
@@ -195,8 +201,6 @@ void mpx_kmul(mpw *dv, mpw *dvl,
 #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));                                        \
@@ -243,7 +247,7 @@ static int umul(dstr *v)
   ALLOC(s, sl, 2 * m + 32);
 
   mpx_kmul(d, dl, a, al, b, bl, s, sl);
-  if (MPX_UCMP(d, dl, !=, c, cl)) {
+  if (!mpx_ueq(d, dl, c, cl)) {
     fprintf(stderr, "\n*** umul failed\n");
     dumpmp("       a", a, al);
     dumpmp("       b", b, bl);