diff options
Diffstat (limited to 'src/solvers/h48/gendata_eoesep.h')
| -rw-r--r-- | src/solvers/h48/gendata_eoesep.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/solvers/h48/gendata_eoesep.h b/src/solvers/h48/gendata_eoesep.h index d887209..4bf5a84 100644 --- a/src/solvers/h48/gendata_eoesep.h +++ b/src/solvers/h48/gendata_eoesep.h | |||
| @@ -12,9 +12,11 @@ STATIC uint32_t gendata_eoesep_marksim(int64_t, uint8_t, | |||
| 12 | uint8_t [static EOESEP_BUF], uint32_t [static ESEP_MAX]); | 12 | uint8_t [static EOESEP_BUF], uint32_t [static ESEP_MAX]); |
| 13 | STATIC bool gendata_eoesep_next(cube_t, uint8_t, | 13 | STATIC bool gendata_eoesep_next(cube_t, uint8_t, |
| 14 | uint8_t [static EOESEP_BUF], uint32_t [static ESEP_MAX]); | 14 | uint8_t [static EOESEP_BUF], uint32_t [static ESEP_MAX]); |
| 15 | STATIC uint8_t get_eoesep_pval(const uint8_t *, int64_t); | 15 | STATIC uint8_t get_eoesep_pval( |
| 16 | const uint8_t [static DIV_ROUND_UP(EOESEP_TABLESIZE, 2)], int64_t); | ||
| 16 | STATIC uint8_t get_eoesep_pval_cube(const void *, cube_t); | 17 | STATIC uint8_t get_eoesep_pval_cube(const void *, cube_t); |
| 17 | STATIC void set_eoesep_pval(uint8_t *, int64_t, uint8_t); | 18 | STATIC void set_eoesep_pval( |
| 19 | uint8_t [static DIV_ROUND_UP(EOESEP_TABLESIZE, 2)], int64_t, uint8_t); | ||
| 18 | 20 | ||
| 19 | STATIC int64_t | 21 | STATIC int64_t |
| 20 | coord_eoesep_sym(cube_t c, const uint32_t esep_classes[static ESEP_MAX]) | 22 | coord_eoesep_sym(cube_t c, const uint32_t esep_classes[static ESEP_MAX]) |
| @@ -247,7 +249,10 @@ gendata_eoesep_next( | |||
| 247 | } | 249 | } |
| 248 | 250 | ||
| 249 | STATIC uint8_t | 251 | STATIC uint8_t |
| 250 | get_eoesep_pval(const uint8_t *table, int64_t i) | 252 | get_eoesep_pval( |
| 253 | const uint8_t table[static DIV_ROUND_UP(EOESEP_TABLESIZE, 2)], | ||
| 254 | int64_t i | ||
| 255 | ) | ||
| 251 | { | 256 | { |
| 252 | return (table[EOESEP_INDEX(i)] & EOESEP_MASK(i)) >> EOESEP_SHIFT(i); | 257 | return (table[EOESEP_INDEX(i)] & EOESEP_MASK(i)) >> EOESEP_SHIFT(i); |
| 253 | } | 258 | } |
| @@ -267,7 +272,11 @@ get_eoesep_pval_cube(const void *data, cube_t c) | |||
| 267 | } | 272 | } |
| 268 | 273 | ||
| 269 | STATIC void | 274 | STATIC void |
| 270 | set_eoesep_pval(uint8_t *table, int64_t i, uint8_t val) | 275 | set_eoesep_pval( |
| 276 | uint8_t table[static DIV_ROUND_UP(EOESEP_TABLESIZE, 2)], | ||
| 277 | int64_t i, | ||
| 278 | uint8_t val | ||
| 279 | ) | ||
| 271 | { | 280 | { |
| 272 | table[EOESEP_INDEX(i)] = (table[EOESEP_INDEX(i)] & (~EOESEP_MASK(i))) | 281 | table[EOESEP_INDEX(i)] = (table[EOESEP_INDEX(i)] & (~EOESEP_MASK(i))) |
| 273 | | (val << EOESEP_SHIFT(i)); | 282 | | (val << EOESEP_SHIFT(i)); |
