projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement efficient reduction for pleasant-looking primes.
[u/mdw/catacomb]
/
gfx-sqr.c
diff --git
a/gfx-sqr.c
b/gfx-sqr.c
index
b253a32
..
19ec574
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: gfx-sqr.c,v 1.
2 2004/03/21 22:52:06
mdw Exp $
*
* Sqaring binary polynomials
*
*
* Sqaring binary polynomials
*
@@
-30,6
+30,12
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: gfx-sqr.c,v $
/*----- 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.
*
* Revision 1.1 2000/10/08 15:49:37 mdw
* First glimmerings of binary polynomial arithmetic.
*
@@
-38,7
+44,7
@@
/*----- 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 --------------------------------------------------*/
@@
-99,7
+105,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;