aboutsummaryrefslogtreecommitdiff
path: root/src/cube_avx2.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_avx2.h
parentf25a10e19eca294c4e6a99e4f80ce5cfd11a0e5f (diff)
downloadnissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.tar.gz
nissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.zip
Reorganized folder structure
Diffstat (limited to '')
-rw-r--r--src/arch/avx2.h (renamed from src/cube_avx2.h)22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/cube_avx2.h b/src/arch/avx2.h
index b189023..59a0d6c 100644
--- a/src/cube_avx2.h
+++ b/src/arch/avx2.h
@@ -1,5 +1,3 @@
1typedef __m256i cube_t;
2
3#define _co2_avx2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x6060606060606060)) 1#define _co2_avx2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x6060606060606060))
4#define _cocw_avx2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x2020202020202020)) 2#define _cocw_avx2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x2020202020202020))
5#define _cp_avx2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x0707070707070707)) 3#define _cp_avx2 _mm256_set_epi64x(0, 0, 0, INT64_C(0x0707070707070707))
@@ -18,26 +16,6 @@ typedef __m256i cube_t;
18#define solved static_cube( \ 16#define solved static_cube( \
19 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) 17 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
20 18
21_static void pieces(cube_t *, uint8_t [static 8], uint8_t [static 12]);
22_static_inline bool equal(cube_t, cube_t);
23_static_inline cube_t invertco(cube_t);
24_static_inline cube_t compose_epcpeo(cube_t, cube_t);
25_static_inline cube_t compose_edges(cube_t, cube_t);
26_static_inline cube_t compose_corners(cube_t, cube_t);
27_static_inline cube_t compose(cube_t, cube_t);
28_static_inline cube_t inverse(cube_t);
29
30_static_inline int64_t coord_co(cube_t);
31_static_inline int64_t coord_csep(cube_t);
32_static_inline int64_t coord_cocsep(cube_t);
33_static_inline int64_t coord_eo(cube_t);
34_static_inline int64_t coord_esep(cube_t);
35
36_static_inline void copy_corners(cube_t *, cube_t);
37_static_inline void copy_edges(cube_t *, cube_t);
38_static_inline void set_eo(cube_t *, int64_t);
39_static_inline cube_t invcoord_esep(int64_t);
40
41_static void 19_static void
42pieces(cube_t *cube, uint8_t c[static 8], uint8_t e[static 12]) 20pieces(cube_t *cube, uint8_t c[static 8], uint8_t e[static 12])
43{ 21{

Generated with cgit - Back to sebastiano.tronto.net