projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Error return for Rabin-Miller context creation.
[u/mdw/catacomb]
/
gf-gcd.c
diff --git
a/gf-gcd.c
b/gf-gcd.c
index
8eb9bbf
..
622679a
100644
(file)
--- a/
gf-gcd.c
+++ b/
gf-gcd.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id
: gf-gcd.c,v 1.3 2004/04/08 01:36:15 mdw Exp
$
+ * $Id$
*
* Euclidian algorithm on binary polynomials
*
*
* Euclidian algorithm on binary polynomials
*
@@
-119,7
+119,7
@@
void gf_gcd(mp **gcd, mp **xx, mp **yy, mp *a, mp *b)
u = MP_COPY(a);
v = MP_COPY(b);
u = MP_COPY(a);
v = MP_COPY(b);
- while (
MP_LEN
(v)) {
+ while (
!MP_ZEROP
(v)) {
mp *t;
gf_div(&q, &u, u, v);
if (f & f_ext) {
mp *t;
gf_div(&q, &u, u, v);
if (f & f_ext) {