diff options
Diffstat (limited to 'test/test.h')
| -rw-r--r-- | test/test.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/test.h b/test/test.h index ab40bde..1bbb9fc 100644 --- a/test/test.h +++ b/test/test.h | |||
| @@ -6,16 +6,14 @@ | |||
| 6 | 6 | ||
| 7 | #define STRLENMAX 10000 | 7 | #define STRLENMAX 10000 |
| 8 | 8 | ||
| 9 | #ifdef CUBE_AVX2 | ||
| 10 | #include <immintrin.h> | ||
| 11 | typedef __m256i cube_t; | ||
| 12 | #else | ||
| 9 | typedef struct { | 13 | typedef struct { |
| 10 | uint8_t corner[8]; | 14 | uint8_t corner[8]; |
| 11 | uint8_t edge[12]; | 15 | uint8_t edge[12]; |
| 12 | } cube_t; | 16 | } cube_t; |
| 13 | |||
| 14 | #ifdef CUBE_AVX2 | ||
| 15 | #include <immintrin.h> | ||
| 16 | typedef __m256i cube_fast_t; | ||
| 17 | #else | ||
| 18 | typedef cube_t cube_fast_t; | ||
| 19 | #endif | 17 | #endif |
| 20 | 18 | ||
| 21 | /* Basic functions used in most tests */ | 19 | /* Basic functions used in most tests */ |
| @@ -26,5 +24,3 @@ bool issolvable(cube_t); | |||
| 26 | bool issolved(cube_t); | 24 | bool issolved(cube_t); |
| 27 | cube_t readcube(char *, char *); | 25 | cube_t readcube(char *, char *); |
| 28 | void writecube(char *, cube_t, char *); | 26 | void writecube(char *, cube_t, char *); |
| 29 | cube_t fasttocube(cube_fast_t); | ||
| 30 | cube_fast_t cubetofast(cube_t); | ||
