diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-05 09:04:00 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-05 09:04:00 +0200 |
| commit | 3e7bb9b87ef9b47d8f643dbcae19a64ddbc81dbb (patch) | |
| tree | 122faba06273ae0450a2994e22bad42202f11da7 /src/solvers/tables.h | |
| parent | f6efc882a279cddb624fe2f2470797561a6997b8 (diff) | |
| download | nissy-core-3e7bb9b87ef9b47d8f643dbcae19a64ddbc81dbb.tar.gz nissy-core-3e7bb9b87ef9b47d8f643dbcae19a64ddbc81dbb.zip | |
Added DRFIN solver
Diffstat (limited to '')
| -rw-r--r-- | src/solvers/tables.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/solvers/tables.h b/src/solvers/tables.h index 1e76fc1..b7a1079 100644 --- a/src/solvers/tables.h +++ b/src/solvers/tables.h | |||
| @@ -8,6 +8,7 @@ STATIC int64_t readtableinfo_n( | |||
| 8 | size_t, const unsigned char *, uint8_t, tableinfo_t [static 1]); | 8 | size_t, const unsigned char *, uint8_t, tableinfo_t [static 1]); |
| 9 | STATIC int64_t writetableinfo( | 9 | STATIC int64_t writetableinfo( |
| 10 | const tableinfo_t [static 1], size_t, unsigned char *); | 10 | const tableinfo_t [static 1], size_t, unsigned char *); |
| 11 | STATIC void append_name(tableinfo_t [static 1], const char *); | ||
| 11 | 12 | ||
| 12 | STATIC uint64_t | 13 | STATIC uint64_t |
| 13 | read_unaligned_u64(const unsigned char buf[static sizeof(uint64_t)]) | 14 | read_unaligned_u64(const unsigned char buf[static sizeof(uint64_t)]) |
| @@ -135,3 +136,14 @@ writetableinfo( | |||
| 135 | 136 | ||
| 136 | return NISSY_OK; | 137 | return NISSY_OK; |
| 137 | } | 138 | } |
| 139 | |||
| 140 | STATIC void | ||
| 141 | append_name(tableinfo_t info[static 1], const char *str) | ||
| 142 | { | ||
| 143 | int i, j; | ||
| 144 | |||
| 145 | for (i = 0, j = strlen(info->solver); str[i] != '\0'; i++, j++) | ||
| 146 | info->solver[j] = str[i]; | ||
| 147 | |||
| 148 | info->solver[j] = '\0'; | ||
| 149 | } | ||
