aboutsummaryrefslogtreecommitdiff
path: root/src/cube_portable.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-08-18 14:26:45 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-08-18 14:26:45 +0200
commit18c9a8b8905304cf5f8fc15825769046a3144866 (patch)
treea7807bb32b0a5d9ded7d3cedccc598f64a9b00fe /src/cube_portable.h
parentf25a10e19eca294c4e6a99e4f80ce5cfd11a0e5f (diff)
downloadnissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.tar.gz
nissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.zip
Reorganized folder structure
Diffstat (limited to '')
-rw-r--r--src/arch/portable.h (renamed from src/cube_portable.h)26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/cube_portable.h b/src/arch/portable.h
index 77e803b..b8330af 100644
--- a/src/cube_portable.h
+++ b/src/arch/portable.h
@@ -1,8 +1,3 @@
1typedef struct {
2 uint8_t corner[8];
3 uint8_t edge[12];
4} cube_t;
5
6#define static_cube(c_ufr, c_ubl, c_dfl, c_dbr, c_ufl, c_ubr, c_dfr, c_dbl, \ 1#define static_cube(c_ufr, c_ubl, c_dfl, c_dbr, c_ufl, c_ubr, c_dfr, c_dbl, \
7 e_uf, e_ub, e_db, e_df, e_ur, e_ul, e_dl, e_dr, e_fr, e_fl, e_bl, e_br) \ 2 e_uf, e_ub, e_db, e_df, e_ur, e_ul, e_dl, e_dr, e_fr, e_fl, e_bl, e_br) \
8 ((cube_t) { \ 3 ((cube_t) { \
@@ -14,27 +9,6 @@ typedef struct {
14#define solved static_cube( \ 9#define solved static_cube( \
15 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) 10 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
16 11
17_static void pieces(cube_t *, uint8_t [static 8], uint8_t [static 12]);
18_static_inline bool equal(cube_t, cube_t);
19_static_inline cube_t invertco(cube_t);
20_static_inline void compose_edges_inplace(cube_t, cube_t, cube_t *);
21_static_inline void compose_corners_inplace(cube_t, cube_t, cube_t *);
22_static_inline cube_t compose_edges(cube_t, cube_t);
23_static_inline cube_t compose_corners(cube_t, cube_t);
24_static_inline cube_t compose(cube_t, cube_t);
25_static_inline cube_t inverse(cube_t);
26
27_static_inline int64_t coord_co(cube_t);
28_static_inline int64_t coord_csep(cube_t);
29_static_inline int64_t coord_cocsep(cube_t);
30_static_inline int64_t coord_eo(cube_t);
31_static_inline int64_t coord_esep(cube_t);
32
33_static_inline void copy_corners(cube_t *, cube_t);
34_static_inline void copy_edges(cube_t *, cube_t);
35_static_inline void set_eo(cube_t *, int64_t);
36_static_inline cube_t invcoord_esep(int64_t);
37
38_static void 12_static void
39pieces(cube_t *cube, uint8_t c[static 8], uint8_t e[static 12]) 13pieces(cube_t *cube, uint8_t c[static 8], uint8_t e[static 12])
40{ 14{

Generated with cgit - Back to sebastiano.tronto.net