/* -*-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.
#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)); \
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);