aboutsummaryrefslogtreecommitdiff
path: root/tools/001_gendata_h48h0k4
diff options
context:
space:
mode:
Diffstat (limited to 'tools/001_gendata_h48h0k4')
-rw-r--r--tools/001_gendata_h48h0k4/gendata_h48h0k4.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/tools/001_gendata_h48h0k4/gendata_h48h0k4.c b/tools/001_gendata_h48h0k4/gendata_h48h0k4.c
index 0e3deb1..a9993b8 100644
--- a/tools/001_gendata_h48h0k4/gendata_h48h0k4.c
+++ b/tools/001_gendata_h48h0k4/gendata_h48h0k4.c
@@ -27,8 +27,6 @@ uint32_t expected[21] = {
27char *buf; 27char *buf;
28 28
29void run(void) { 29void run(void) {
30 uint32_t *h48info, x;
31 int i;
32 int64_t s; 30 int64_t s;
33 31
34 s = nissy_gendata("h48", OPTIONS, buf); 32 s = nissy_gendata("h48", OPTIONS, buf);
@@ -36,20 +34,12 @@ void run(void) {
36 if (s == -1) { 34 if (s == -1) {
37 printf("Error generating table\n"); 35 printf("Error generating table\n");
38 } else { 36 } else {
39 printf("Table is probably ok\n"); 37 nissy_datainfo(buf, write_stdout);
40/* 38 printf("\n");
41TODO: adapt to new tables 39 printf("Succesfully generated %" PRId64 " bytes. "
42 printf("Succesfully generated %" PRId64 " bytes. Table:\n", s); 40 "See above for details on the tables.\n", s);
43 h48info = (uint32_t *)buf + 1 + (ETABLESIZE(HVALUE) + COCSEPSIZE) / 4; 41
44 for (i = 0; i < MAXDEPTH+1 && h48info[i+1]; i++) { 42 /* TODO: check that the table is correct */
45 x = h48info[i+1];
46 printf("%d:\t%" PRIu32, i, x);
47 if (x != expected[i])
48 printf(" <--- Error! Expected: %" PRIu32,
49 expected[i]);
50 printf("\n");
51 }
52*/
53 } 43 }
54} 44}
55 45

Generated with cgit - Back to sebastiano.tronto.net