diff options
Diffstat (limited to 'src/arch/common.h')
| -rw-r--r-- | src/arch/common.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ | |||
| 1 | #define EOSHIFT UINT8_C(4) | ||
| 2 | #define COSHIFT UINT8_C(5) | ||
| 3 | |||
| 4 | #define PBITS UINT8_C(0xF) | ||
| 5 | #define ESEPBIT_1 UINT8_C(0x4) | ||
| 6 | #define ESEPBIT_2 UINT8_C(0x8) | ||
| 7 | #define CSEPBIT UINT8_C(0x4) | ||
| 8 | #define EOBIT UINT8_C(0x10) | ||
| 9 | #define COBITS UINT8_C(0xF0) | ||
| 10 | #define COBITS_2 UINT8_C(0x60) | ||
| 11 | #define CTWIST_CW UINT8_C(0x20) | ||
| 12 | #define CTWIST_CCW UINT8_C(0x40) | ||
| 13 | #define EFLIP UINT8_C(0x10) | ||
| 14 | |||
| 1 | STATIC_INLINE int popcount_u32(uint32_t); | 15 | STATIC_INLINE int popcount_u32(uint32_t); |
| 2 | 16 | ||
| 3 | STATIC void pieces(cube_t [static 1], uint8_t [static 8], uint8_t [static 12]); | 17 | STATIC void pieces(cube_t [static 1], uint8_t [static 8], uint8_t [static 12]); |
