chiark
/
gitweb
/
~mdw
/
rhodes
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00d6f25
)
rho.cc: Fix the cycle-finding table initialization.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 28 May 2017 18:03:08 +0000
(19:03 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 21 Jun 2017 10:47:03 +0000
(11:47 +0100)
My initial cut was hopeless, but Teske's suggestion doesn't work either
for trivial logs. This approach does.
rho.cc
patch
|
blob
|
blame
|
history
diff --git
a/rho.cc
b/rho.cc
index 651211ad4f7ba36e9293f8b9ecac16ba252d203f..7033258ec3ceeca822e8a8e2d7490924bf9a189e 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;