summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2020-04-09 17:12:27 +0200
committerjonsykkel <jonrevold@gmail.com>2020-04-09 17:12:27 +0200
commit1ad24e530f1ac01716f04d29f9bf7ddececbc68f (patch)
treea6647edc7d5c798f67eb39968c112a943696f444
parentcc35247693429e99ee256f68879fcab7a6daaf27 (diff)
downloadct_sequence-1ad24e530f1ac01716f04d29f9bf7ddececbc68f.tar.gz
a
-rw-r--r--src/a5.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/a5.c b/src/a5.c
index 004cab6..bcf6f6b 100644
--- a/src/a5.c
+++ b/src/a5.c
@@ -42,8 +42,9 @@ void a5_loop(uint64_t x0,uint64_t x1){
uint64_t *index_ptr;
uint64_t index_bit;
- index_ptr = index+(t>>6);
- index_bit = 1ULL<<(t & 63);
+ index_ptr = index+(t/64);
+ index_bit = 1ULL<<(t%63);
+
if(*index_ptr & index_bit){
next = x-lastp[t];
}else{