diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-08-30 07:52:53 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-08-30 07:52:53 +0200 |
| commit | c548499e68e473452592c9b0bf860f76bd8b94b8 (patch) | |
| tree | 02219807113dde108e278f38f3dd5874f7e3dc18 /tools/001_gendata_h48h0k4 | |
| parent | 7e6c14a2f6e9e9cbac3431f3085c42bbe474d13d (diff) | |
| download | nissy-core-c548499e68e473452592c9b0bf860f76bd8b94b8.tar.gz nissy-core-c548499e68e473452592c9b0bf860f76bd8b94b8.zip | |
Added tool for checking new tables (and they are wrong)
Diffstat (limited to 'tools/001_gendata_h48h0k4')
| -rw-r--r-- | tools/001_gendata_h48h0k4/gendata_h48h0k4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/001_gendata_h48h0k4/gendata_h48h0k4.c b/tools/001_gendata_h48h0k4/gendata_h48h0k4.c index 0926a34..a2c57ca 100644 --- a/tools/001_gendata_h48h0k4/gendata_h48h0k4.c +++ b/tools/001_gendata_h48h0k4/gendata_h48h0k4.c | |||
| @@ -37,12 +37,12 @@ void run(void) { | |||
| 37 | printf("Error generating table\n"); | 37 | printf("Error generating table\n"); |
| 38 | } else { | 38 | } else { |
| 39 | printf("Succesfully generated %" PRId64 " bytes. Table:\n", s); | 39 | printf("Succesfully generated %" PRId64 " bytes. Table:\n", s); |
| 40 | h48info = (uint32_t *)buf + (ETABLESIZE(HVALUE) + COCSEPSIZE) / 4; | 40 | h48info = (uint32_t *)buf + 1 + (ETABLESIZE(HVALUE) + COCSEPSIZE) / 4; |
| 41 | for (i = 0; i < MAXDEPTH+1 && h48info[i+1]; i++) { | 41 | for (i = 0; i < MAXDEPTH+1 && h48info[i+1]; i++) { |
| 42 | x = h48info[i+1]; | 42 | x = h48info[i+1]; |
| 43 | printf("%d:\t%" PRIu32, i, x); | 43 | printf("%d:\t%" PRIu32, i, x); |
| 44 | if (x != expected[i]) | 44 | if (x != expected[i]) |
| 45 | printf(" <--- Error! Expected: %" PRIu32 "\n", | 45 | printf(" <--- Error! Expected: %" PRIu32, |
| 46 | expected[i]); | 46 | expected[i]); |
| 47 | printf("\n"); | 47 | printf("\n"); |
| 48 | } | 48 | } |
