aboutsummaryrefslogtreecommitdiff
path: root/src/_base_arr.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-10-29 10:29:27 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2023-10-29 10:31:38 +0100
commit80ec600701aae54350679bbf5e0ce874c915506e (patch)
tree137007693afb0d12b0886990b4bfb6d7278bfa22 /src/_base_arr.c
parentf2dd7feb819fe4a8a4181dd1d04488e31f4b63a1 (diff)
downloadnissy-core-80ec600701aae54350679bbf5e0ce874c915506e.tar.gz
nissy-core-80ec600701aae54350679bbf5e0ce874c915506e.zip
AVX2 compiles, fails all tests; + some renaming
Diffstat (limited to '')
-rw-r--r--src/_base_arr.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/_base_arr.c b/src/_base_arr.c
deleted file mode 100644
index 2169cd5..0000000
--- a/src/_base_arr.c
+++ /dev/null
@@ -1,30 +0,0 @@
1cube_t solvedcube = {
2 .c = {0, 1, 2, 3, 4, 5, 6, 7},
3 .e = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
4};
5static cube_t errorcube = { .e = {0}, .c = {0} };
6static cube_t zerocube = { .e = {0}, .c = {0} };
7
8static uint8_t
9get_edge(cube_t c, uint8_t i)
10{
11 return c.e[i];
12}
13
14static uint8_t
15get_corner(cube_t c, uint8_t i)
16{
17 return c.c[i];
18}
19
20static void
21set_edge(cube_t *c, uint8_t i, uint8_t p)
22{
23 c->e[i] = p;
24}
25
26static void
27set_corner(cube_t *c, uint8_t i, uint8_t p)
28{
29 c->c[i] = p;
30}

Generated with cgit - Back to sebastiano.tronto.net