Skip to content

Commit

Permalink
[cases] eval.ntt* remove printf
Browse files Browse the repository at this point in the history
  • Loading branch information
SharzyL committed Nov 21, 2024
1 parent 2a4f422 commit 5fb16d7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 35 deletions.
19 changes: 8 additions & 11 deletions tests/eval/_ntt/ntt_1024_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,12 @@ void test() {
int dst[1024];
ntt(arr, l, twindle, p, dst);

for (int i = 0; i < n; i++) {
printf("%d", dst[i]);
if ((i + 1) % 8 == 0) {
printf("\n");
} else {
printf(" ");
}
}
// for (int i = 0; i < n; i++) {
// printf("%d", dst[i]);
// if ((i + 1) % 8 == 0) {
// printf("\n");
// } else {
// printf(" ");
// }
// }
}


int main() { test(); }
16 changes: 8 additions & 8 deletions tests/eval/_ntt/ntt_128_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ void test() {
int dst[128];
ntt(arr, l, twindle, p, dst);

for (int i = 0; i < n; i++) {
printf("%d", dst[i]);
if ((i + 1) % 8 == 0) {
printf("\n");
} else {
printf(" ");
}
}
// for (int i = 0; i < n; i++) {
// printf("%d", dst[i]);
// if ((i + 1) % 8 == 0) {
// printf("\n");
// } else {
// printf(" ");
// }
// }
}
16 changes: 8 additions & 8 deletions tests/eval/_ntt/ntt_256_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ void test() {
int dst[256];
ntt(arr, l, twindle, p, dst);

for (int i = 0; i < n; i++) {
printf("%d", dst[i]);
if ((i + 1) % 8 == 0) {
printf("\n");
} else {
printf(" ");
}
}
// for (int i = 0; i < n; i++) {
// printf("%d", dst[i]);
// if ((i + 1) % 8 == 0) {
// printf("\n");
// } else {
// printf(" ");
// }
// }
}
16 changes: 8 additions & 8 deletions tests/eval/_ntt/ntt_512_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ void test() {
int dst[512];
ntt(arr, l, twindle, p, dst);

for (int i = 0; i < n; i++) {
printf("%d", dst[i]);
if ((i + 1) % 8 == 0) {
printf("\n");
} else {
printf(" ");
}
}
// for (int i = 0; i < n; i++) {
// printf("%d", dst[i]);
// if ((i + 1) % 8 == 0) {
// printf("\n");
// } else {
// printf(" ");
// }
// }
}

0 comments on commit 5fb16d7

Please sign in to comment.