X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/7d5fa32a96bb9badc88fe1b07086c6f770c0de31..b119552640180d2c9c2db3d55dd5bf1c29ff4cca:/mpx-kmul.c diff --git a/mpx-kmul.c b/mpx-kmul.c index dd492ad..eaa0848 100644 --- a/mpx-kmul.c +++ b/mpx-kmul.c @@ -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 * @@ -30,6 +30,12 @@ /*----- 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 #include -#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);