summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2020-04-07 13:19:39 +0200
committerjonsykkel <jonrevold@gmail.com>2020-04-07 13:19:39 +0200
commitff81b0d3388b205044b88517a45d692bb3c24d7b (patch)
tree7e40b509624b6e303e2ebff406fe7a69ce5ed535
parent7791bcc0fbc32f12cc127c14519d4781c596d76d (diff)
downloadct_sequence-ff81b0d3388b205044b88517a45d692bb3c24d7b.tar.gz
vork
-rw-r--r--src/a3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/a3.c b/src/a3.c
index 16fcd9f..7b0e80e 100644
--- a/src/a3.c
+++ b/src/a3.c
@@ -36,20 +36,20 @@ void a3_init(uint64_t n){
void a3_loop(uint64_t x0,uint64_t x1){
uint32_t x1_32 = x1;
- printf("MAIN %10u -> %10u\n",(uint32_t)x0,x1_32);
+ printf("MAIN %10u -> %10u\n\n",(uint32_t)x0,x1_32);
for(uint32_t x = x0;x < x1_32;){
if(x+M24_RANGE >= x1_32){
- printf(" %10u -> %10u\n",x,x+x1_32);
+ printf("LAST %10u -> %10u\n",x,x1_32);
for(;x < x1_32;x++){
inner(x);
}
break;
}else{
printf(" %10u -> %10u\n",x,x+M24_RANGE);
- for(;x < x+M24_RANGE;x++){
+ uint32_t max = x+M24_RANGE;
+ for(;x < max;x++){
inner(x);
}
- //scale back
}
}
}