diff options
Diffstat (limited to 'test/test.h')
| -rw-r--r-- | test/test.h | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/test/test.h b/test/test.h index 1f4b2c3..d7658cb 100644 --- a/test/test.h +++ b/test/test.h | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #define TEST_H | ||
| 2 | |||
| 1 | #include <inttypes.h> | 3 | #include <inttypes.h> |
| 2 | #include <stdarg.h> | 4 | #include <stdarg.h> |
| 3 | #include <stdbool.h> | 5 | #include <stdbool.h> |
| @@ -5,24 +7,9 @@ | |||
| 5 | #include <stdlib.h> | 7 | #include <stdlib.h> |
| 6 | #include <string.h> | 8 | #include <string.h> |
| 7 | 9 | ||
| 8 | #define STRLENMAX 10000 | 10 | #include "../src/arch/arch.h" |
| 9 | 11 | ||
| 10 | #if defined(CUBE_AVX2) | 12 | #define STRLENMAX 10000 |
| 11 | #include <immintrin.h> | ||
| 12 | typedef __m256i cube_t; | ||
| 13 | #elif defined(CUBE_NEON) | ||
| 14 | #include <stdlib.h> | ||
| 15 | #include <arm_neon.h> | ||
| 16 | typedef struct { | ||
| 17 | uint8x16_t corner; | ||
| 18 | uint8x16_t edge; | ||
| 19 | } cube_t; | ||
| 20 | #else | ||
| 21 | typedef struct { | ||
| 22 | uint8_t corner[8]; | ||
| 23 | uint8_t edge[12]; | ||
| 24 | } cube_t; | ||
| 25 | #endif | ||
| 26 | 13 | ||
| 27 | /* Basic functions used in most tests */ | 14 | /* Basic functions used in most tests */ |
| 28 | cube_t solvedcube(void); | 15 | cube_t solvedcube(void); |
