aboutsummaryrefslogtreecommitdiff
path: root/test/test.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-04-13 15:31:32 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-04-13 15:31:32 +0200
commita18d4b0ba97b301193597a963a77a40ef7c2254b (patch)
treee2137f21fd162380a2cf8ec6e54af959ad4c4d90 /test/test.h
parentae055f1fc993d406939f57f11553d218e1efde82 (diff)
downloadcubecore-a18d4b0ba97b301193597a963a77a40ef7c2254b.tar.gz
cubecore-a18d4b0ba97b301193597a963a77a40ef7c2254b.zip
Some renaming
Diffstat (limited to 'test/test.h')
-rw-r--r--test/test.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/test/test.h b/test/test.h
index 3cbfd10..92ed0db 100644
--- a/test/test.h
+++ b/test/test.h
@@ -4,24 +4,7 @@
4#include <stdlib.h> 4#include <stdlib.h>
5#include <string.h> 5#include <string.h>
6 6
7#define STRLENMAX 10000 7#include "../cube.h"
8
9typedef struct {
10 uint8_t corner[8];
11 uint8_t edge[12];
12} cube_t;
13 8
14#ifdef CUBE_AVX2 9#define STRLENMAX 10000
15#include <immintrin.h>
16typedef __m256i cube_fast_t;
17#else
18typedef cube_t cube_fast_t; 10typedef cube_t cube_fast_t;
19#endif
20
21/* Basic functions used in most tests */
22cube_t solvedcube(void);
23bool iserror(cube_t);
24bool issolvable(cube_t);
25bool issolved(cube_t);
26cube_t readcube(char *, char *);
27void writecube(char *, cube_t, char *);

Generated with cgit - Back to sebastiano.tronto.net