From 77fbe3d7cbd8448f8124dba143bc5110344c6b49 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 22 Apr 2025 18:45:12 +0200 Subject: Progress --- src/arch/common.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/arch') diff --git a/src/arch/common.h b/src/arch/common.h index e57fba9..922ea51 100644 --- a/src/arch/common.h +++ b/src/arch/common.h @@ -1,3 +1,17 @@ +#define EOSHIFT UINT8_C(4) +#define COSHIFT UINT8_C(5) + +#define PBITS UINT8_C(0xF) +#define ESEPBIT_1 UINT8_C(0x4) +#define ESEPBIT_2 UINT8_C(0x8) +#define CSEPBIT UINT8_C(0x4) +#define EOBIT UINT8_C(0x10) +#define COBITS UINT8_C(0xF0) +#define COBITS_2 UINT8_C(0x60) +#define CTWIST_CW UINT8_C(0x20) +#define CTWIST_CCW UINT8_C(0x40) +#define EFLIP UINT8_C(0x10) + STATIC_INLINE int popcount_u32(uint32_t); STATIC void pieces(cube_t [static 1], uint8_t [static 8], uint8_t [static 12]); -- cgit v1.3