diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-22 18:45:12 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-22 18:45:12 +0200 |
| commit | 77fbe3d7cbd8448f8124dba143bc5110344c6b49 (patch) | |
| tree | 43a4f9f8966855a54f1e2749e6bfc6861d5f5732 /src/arch/common.h | |
| parent | bab22e1946a656088804b61cf765461b48744971 (diff) | |
| download | nissy-core-77fbe3d7cbd8448f8124dba143bc5110344c6b49.tar.gz nissy-core-77fbe3d7cbd8448f8124dba143bc5110344c6b49.zip | |
Progress
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]); |
