aboutsummaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/common.h14
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
1STATIC_INLINE int popcount_u32(uint32_t); 15STATIC_INLINE int popcount_u32(uint32_t);
2 16
3STATIC void pieces(cube_t [static 1], uint8_t [static 8], uint8_t [static 12]); 17STATIC void pieces(cube_t [static 1], uint8_t [static 8], uint8_t [static 12]);

Generated with cgit - Back to sebastiano.tronto.net