aboutsummaryrefslogtreecommitdiff
path: root/cube.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cube.h (renamed from src/cube.h)9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cube.h b/cube.h
index 468b0ca..4bbf28a 100644
--- a/src/cube.h
+++ b/cube.h
@@ -1,12 +1,11 @@
1typedef 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>
7typedef __m256i cube_t; 3typedef __m256i cube_t;
8#else 4#else
9typedef cube_arr_t cube_t; 5typedef 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
12typedef uint8_t move_t; 11typedef uint8_t move_t;

Generated with cgit - Back to sebastiano.tronto.net