aboutsummaryrefslogtreecommitdiff
path: root/src/cube_neon.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_neon.h
parentf25a10e19eca294c4e6a99e4f80ce5cfd11a0e5f (diff)
downloadnissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.tar.gz
nissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.zip
Reorganized folder structure
Diffstat (limited to '')
-rw-r--r--src/arch/neon.h (renamed from src/cube_neon.h)29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/cube_neon.h b/src/arch/neon.h
index 23e5565..a75f86d 100644
--- a/src/cube_neon.h
+++ b/src/arch/neon.h
@@ -1,10 +1,3 @@
1// cube_t
2typedef struct
3{
4 uint8x16_t corner;
5 uint8x16_t edge;
6} cube_t;
7
8#define _co2_neon vdupq_n_u8(0x60) 1#define _co2_neon vdupq_n_u8(0x60)
9#define _cocw_neon vdupq_n_u8(0x20) 2#define _cocw_neon vdupq_n_u8(0x20)
10#define _cp_neon vdupq_n_u8(0x07) 3#define _cp_neon vdupq_n_u8(0x07)
@@ -30,28 +23,6 @@ typedef struct
30#define solved static_cube( \ 23#define solved static_cube( \
31 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) 24 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
32 25
33// Functions
34_static void pieces(cube_t *, uint8_t[static 8], uint8_t[static 12]);
35_static_inline bool equal(cube_t, cube_t);
36_static_inline cube_t invertco(cube_t);
37_static_inline cube_t compose_edges(cube_t, cube_t);
38_static_inline cube_t compose_corners(cube_t, cube_t);
39_static_inline uint8x16_t compose_edges_slim(uint8x16_t, uint8x16_t);
40_static_inline uint8x16_t compose_corners_slim(uint8x16_t, uint8x16_t);
41_static_inline cube_t compose(cube_t, cube_t);
42_static_inline cube_t inverse(cube_t);
43
44_static_inline int64_t coord_co(cube_t);
45_static_inline int64_t coord_csep(cube_t);
46_static_inline int64_t coord_cocsep(cube_t);
47_static_inline int64_t coord_eo(cube_t);
48_static_inline int64_t coord_esep(cube_t);
49
50_static_inline void copy_corners(cube_t *, cube_t);
51_static_inline void copy_edges(cube_t *, cube_t);
52_static_inline void set_eo(cube_t *, int64_t);
53_static_inline cube_t invcoord_esep(int64_t);
54
55_static void 26_static void
56pieces(cube_t *cube, uint8_t c[static 8], uint8_t e[static 12]) 27pieces(cube_t *cube, uint8_t c[static 8], uint8_t e[static 12])
57{ 28{

Generated with cgit - Back to sebastiano.tronto.net