diff options
Diffstat (limited to '')
| -rw-r--r-- | cube.h (renamed from src/cube.h) | 9 |
1 files changed, 4 insertions, 5 deletions
| @@ -1,12 +1,11 @@ | |||
| 1 | typedef struct { | ||
| 2 | uint8_t c[16]; | ||
| 3 | uint8_t e[16]; | ||
| 4 | } cube_arr_t; | ||
| 5 | #ifdef CUBE_AVX2 | 1 | #ifdef CUBE_AVX2 |
| 6 | #include <immintrin.h> | 2 | #include <immintrin.h> |
| 7 | typedef __m256i cube_t; | 3 | typedef __m256i cube_t; |
| 8 | #else | 4 | #else |
| 9 | typedef cube_arr_t cube_t; | 5 | typedef struct { |
| 6 | uint8_t c[16]; /* Only the first 8 are used, the rest is padding */ | ||
| 7 | uint8_t e[16]; /* Only the first 12 are used, the rest is padding */ | ||
| 8 | } cube_t; | ||
| 10 | #endif | 9 | #endif |
| 11 | 10 | ||
| 12 | typedef uint8_t move_t; | 11 | typedef uint8_t move_t; |
