X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/c3caa2face1cda7002eb58245ad75865bf437455..025c5f4aa5ffbf8948482a4233318db81c2df5d2:/gfx-sqr.c diff --git a/gfx-sqr.c b/gfx-sqr.c index 19ec574..c0396a0 100644 --- a/gfx-sqr.c +++ b/gfx-sqr.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: gfx-sqr.c,v 1.2 2004/03/21 22:52:06 mdw Exp $ + * $Id$ * * Sqaring binary polynomials * @@ -27,20 +27,6 @@ * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: gfx-sqr.c,v $ - * Revision 1.2 2004/03/21 22:52:06 mdw - * Merge and close elliptic curve branch. - * - * Revision 1.1.4.1 2004/03/21 22:39:46 mdw - * Elliptic curves on binary fields work. - * - * Revision 1.1 2000/10/08 15:49:37 mdw - * First glimmerings of binary polynomial arithmetic. - * - */ - /*----- Header files ------------------------------------------------------*/ #include "mpx.h" @@ -49,7 +35,7 @@ /*----- Static variables --------------------------------------------------*/ -static uint16 tab[256] = GFX_SQRTAB; +static const uint16 tab[256] = GFX_SQRTAB; /*----- Main code ---------------------------------------------------------*/ @@ -208,7 +194,7 @@ static int vsqr(dstr *v) ok = 0; } - free(a); free(b); free(d); + xfree(a); xfree(b); xfree(d); return (ok); }