projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bbs-gen: Don't use the safe stepper.
[u/mdw/catacomb]
/
gfx-sqr.c
diff --git
a/gfx-sqr.c
b/gfx-sqr.c
index
b253a32
..
c0396a0
100644
(file)
--- a/
gfx-sqr.c
+++ b/
gfx-sqr.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id
: gfx-sqr.c,v 1.1 2000/10/08 15:49:37 mdw Exp
$
+ * $Id$
*
* Sqaring binary polynomials
*
*
* Sqaring binary polynomials
*
@@
-27,23
+27,15
@@
* MA 02111-1307, USA.
*/
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: gfx-sqr.c,v $
- * Revision 1.1 2000/10/08 15:49:37 mdw
- * First glimmerings of binary polynomial arithmetic.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "mpx.h"
/*----- Header files ------------------------------------------------------*/
#include "mpx.h"
-/* #include "gfx.h" */
+#include "gfx.h"
#include "gfx-sqr-tab.h"
/*----- Static variables --------------------------------------------------*/
#include "gfx-sqr-tab.h"
/*----- Static variables --------------------------------------------------*/
-static uint16 tab[256] = GFX_SQRTAB;
+static
const
uint16 tab[256] = GFX_SQRTAB;
/*----- Main code ---------------------------------------------------------*/
/*----- Main code ---------------------------------------------------------*/
@@
-99,7
+91,7
@@
void gfx_sqr(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl)
/* --- Output buffering --- */
/* --- Output buffering --- */
- if (bb > MPW_BITS) {
+ if (bb >
=
MPW_BITS) {
*dv++ = MPW(aa);
if (dv >= dvl)
return;
*dv++ = MPW(aa);
if (dv >= dvl)
return;
@@
-202,7
+194,7
@@
static int vsqr(dstr *v)
ok = 0;
}
ok = 0;
}
-
free(a); free(b);
free(d);
+
xfree(a); xfree(b); x
free(d);
return (ok);
}
return (ok);
}