X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/d2d862970aaaa9c14201289f2557bcdfec29b3d5..9312c71ff376dd96fdf970002fd3adb5aeec8db3:/mpx-ksqr.c diff --git a/mpx-ksqr.c b/mpx-ksqr.c index 226b99a..4aa84dd 100644 --- a/mpx-ksqr.c +++ b/mpx-ksqr.c @@ -1,6 +1,6 @@ /* -*-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 * @@ -30,6 +30,12 @@ /*----- 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 @@ -160,8 +166,6 @@ void mpx_ksqr(mpw *dv, mpw *dvl, #include #include -#include "mpscan.h" - #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); - 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);