summaryrefslogtreecommitdiffstats
path: root/src/a5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/a5.c')
-rw-r--r--src/a5.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/a5.c b/src/a5.c
index 46ddcfd..004cab6 100644
--- a/src/a5.c
+++ b/src/a5.c
@@ -19,21 +19,17 @@ static uint64_t *index;
static uint64_t filled;
void a5_init(uint64_t n){
- size_t lastp_size;
+ size_t index_n;
size_t index_size;
+ size_t lastp_size;
t = 0;
filled = 0;
- index_size = (n-1)/8+1;
+ index_n = (n-1)/64+1;
+ index_size = index_n*sizeof(uint64_t);
lastp_size = n*sizeof(uint32_t);
index = calloc(index_size,1);
lastp = calloc(lastp_size,1);
- /*
- index = AALLOC(64,index_size);
- lastp = AALLOC(64,lastp_size);
- memset(index,0x00,index_size);
- memset(lastp,0x00,lastp_size);
- */
}
void a5_loop(uint64_t x0,uint64_t x1){