diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-03-24 23:09:26 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-03-24 23:09:26 +0100 |
| commit | d45e1595ec1cffeab83ac6602b748250b66bea03 (patch) | |
| tree | 44b35714cdae22026fc5e15648e91684a2fbb154 /src/utils/constants.h | |
| parent | ce3f1cc0ef9f46d70ab5387b1458e9098b40711d (diff) | |
| download | nissy-core-d45e1595ec1cffeab83ac6602b748250b66bea03.tar.gz nissy-core-d45e1595ec1cffeab83ac6602b748250b66bea03.zip | |
Big cleanup for appendsolution()
With this PR the appendsolution routine is extracted from the h48
solver and the new coordinate solver and made generic. This has
many advantages:
- less repetition (even if the two versions are different enough that
*for now* it was not a big deal)
- smaller h48/solve.h file, which is already a big beast
- easier to test the appendsolution() routine separately
Diffstat (limited to 'src/utils/constants.h')
| -rw-r--r-- | src/utils/constants.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/constants.h b/src/utils/constants.h index 97bf436..ef8c7e0 100644 --- a/src/utils/constants.h +++ b/src/utils/constants.h | |||
| @@ -105,7 +105,7 @@ STATIC int64_t binomial[12][12] = { | |||
| 105 | #define MM_SIDE(m) (UINT32_C(7) << (uint32_t)(m)) | 105 | #define MM_SIDE(m) (UINT32_C(7) << (uint32_t)(m)) |
| 106 | 106 | ||
| 107 | #define TM_ALLTRANS UINT64_C(0xFFFFFFFFFFFF) | 107 | #define TM_ALLTRANS UINT64_C(0xFFFFFFFFFFFF) |
| 108 | #define TM_SINGLE_UFr UINT64_C(1) | 108 | #define TM_SINGLE(t) (UINT64_C(1) << (uint64_t)(t)) |
| 109 | 109 | ||
| 110 | #define CORNER_UFR UINT8_C(0) | 110 | #define CORNER_UFR UINT8_C(0) |
| 111 | #define CORNER_UBL UINT8_C(1) | 111 | #define CORNER_UBL UINT8_C(1) |
| @@ -142,7 +142,7 @@ STATIC int64_t binomial[12][12] = { | |||
| 142 | #define CTWIST_CW UINT8_C(0x20) | 142 | #define CTWIST_CW UINT8_C(0x20) |
| 143 | #define CTWIST_CCW UINT8_C(0x40) | 143 | #define CTWIST_CCW UINT8_C(0x40) |
| 144 | #define EFLIP UINT8_C(0x10) | 144 | #define EFLIP UINT8_C(0x10) |
| 145 | #define UINT8_ERROR UINT8_C(0xFF) | 145 | #define UINT8_ERROR UINT8_MAX |
| 146 | 146 | ||
| 147 | STATIC const char *cornerstr[] = { | 147 | STATIC const char *cornerstr[] = { |
| 148 | [CORNER_UFR] = "UFR", | 148 | [CORNER_UFR] = "UFR", |
