~mdw
/
rhodes
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rho.cc: Fix the cycle-finding table initialization.
[rhodes]
/
rho.cc
diff --git
a/rho.cc
b/rho.cc
index
651211a
..
7033258
100644
(file)
--- a/
rho.cc
+++ b/
rho.cc
@@
-228,7
+228,8
@@
again:
unsigned long long k = 0;
if (!dpbits)
- for (i = 0; i < NHIST; i++) h[i].k = 0;
+ for (i = 0; i < NHIST; i++)
+ { h[i].k = 0; h[i].y = a; h[i].u = 1; h[i].v = 0; }
for (;;) {
if (k >= niter) goto again;