diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-11 19:48:57 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-11 19:48:57 +0200 |
| commit | 10b65003102675bd19c0e5174ff249be2a163bc7 (patch) | |
| tree | 10388535f1395f084a1a0456094f90cc2390fc62 /test/090_tables_readwrite/tables_readwrite_tests.c | |
| parent | e6ff0ce6926fa921a13055c9c35d8e60b691e776 (diff) | |
| download | nissy-core-10b65003102675bd19c0e5174ff249be2a163bc7.tar.gz nissy-core-10b65003102675bd19c0e5174ff249be2a163bc7.zip | |
Simplified solver
Diffstat (limited to 'test/090_tables_readwrite/tables_readwrite_tests.c')
| -rw-r--r-- | test/090_tables_readwrite/tables_readwrite_tests.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/090_tables_readwrite/tables_readwrite_tests.c b/test/090_tables_readwrite/tables_readwrite_tests.c index 32d171a..e1c2015 100644 --- a/test/090_tables_readwrite/tables_readwrite_tests.c +++ b/test/090_tables_readwrite/tables_readwrite_tests.c | |||
| @@ -12,6 +12,7 @@ typedef struct { | |||
| 12 | uint64_t hash; | 12 | uint64_t hash; |
| 13 | uint64_t entries; | 13 | uint64_t entries; |
| 14 | uint64_t classes; | 14 | uint64_t classes; |
| 15 | uint8_t h48h; | ||
| 15 | uint8_t bits; | 16 | uint8_t bits; |
| 16 | uint8_t base; | 17 | uint8_t base; |
| 17 | uint8_t maxvalue; | 18 | uint8_t maxvalue; |
| @@ -47,6 +48,7 @@ tableinfo_t test_readinfo(void) { | |||
| 47 | ret.hash = readn(); | 48 | ret.hash = readn(); |
| 48 | ret.entries = readn(); | 49 | ret.entries = readn(); |
| 49 | ret.classes = readn(); | 50 | ret.classes = readn(); |
| 51 | ret.h48h = (uint8_t)readn(); | ||
| 50 | ret.bits = (uint8_t)readn(); | 52 | ret.bits = (uint8_t)readn(); |
| 51 | ret.base = (uint8_t)readn(); | 53 | ret.base = (uint8_t)readn(); |
| 52 | ret.maxvalue = (uint8_t)readn(); | 54 | ret.maxvalue = (uint8_t)readn(); |
| @@ -72,6 +74,7 @@ void test_writeinfo(tableinfo_t info) { | |||
| 72 | printf("%" PRIu64 "\n", info.hash); | 74 | printf("%" PRIu64 "\n", info.hash); |
| 73 | printf("%" PRIu64 "\n", info.entries); | 75 | printf("%" PRIu64 "\n", info.entries); |
| 74 | printf("%" PRIu64 "\n", info.classes); | 76 | printf("%" PRIu64 "\n", info.classes); |
| 77 | printf("%" PRIu8 "\n", info.h48h); | ||
| 75 | printf("%" PRIu8 "\n", info.bits); | 78 | printf("%" PRIu8 "\n", info.bits); |
| 76 | printf("%" PRIu8 "\n", info.base); | 79 | printf("%" PRIu8 "\n", info.base); |
| 77 | printf("%" PRIu8 "\n", info.maxvalue); | 80 | printf("%" PRIu8 "\n", info.maxvalue); |
