From d45e1595ec1cffeab83ac6602b748250b66bea03 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 24 Mar 2025 23:09:26 +0100 Subject: 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 --- src/utils/constants.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') 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] = { #define MM_SIDE(m) (UINT32_C(7) << (uint32_t)(m)) #define TM_ALLTRANS UINT64_C(0xFFFFFFFFFFFF) -#define TM_SINGLE_UFr UINT64_C(1) +#define TM_SINGLE(t) (UINT64_C(1) << (uint64_t)(t)) #define CORNER_UFR UINT8_C(0) #define CORNER_UBL UINT8_C(1) @@ -142,7 +142,7 @@ STATIC int64_t binomial[12][12] = { #define CTWIST_CW UINT8_C(0x20) #define CTWIST_CCW UINT8_C(0x40) #define EFLIP UINT8_C(0x10) -#define UINT8_ERROR UINT8_C(0xFF) +#define UINT8_ERROR UINT8_MAX STATIC const char *cornerstr[] = { [CORNER_UFR] = "UFR", -- cgit v1.3