diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-28 20:42:24 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-28 20:42:24 +0200 |
| commit | b05fa355c49c619cce1226716a395381a944f578 (patch) | |
| tree | b46416e2fbbc70f3d780f4e0ea3de7763115efe0 /src/cube.h | |
| parent | fabb1ae495c4404af0f26380c97d0bca7e881a27 (diff) | |
| download | nissy-core-b05fa355c49c619cce1226716a395381a944f578.tar.gz nissy-core-b05fa355c49c619cce1226716a395381a944f578.zip | |
Started working on AVX2 (not working yet)
Diffstat (limited to '')
| -rw-r--r-- | src/cube.h | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -1,11 +1,11 @@ | |||
| 1 | /* Types *********************************************************************/ | 1 | /* Types *********************************************************************/ |
| 2 | 2 | ||
| 3 | /* TODO: ifdef for different implementations */ | ||
| 4 | /* See doc/CUBE_INTERNAL.md for a description of the cube format */ | 3 | /* See doc/CUBE_INTERNAL.md for a description of the cube format */ |
| 5 | typedef struct { | 4 | #ifdef CUBE_AVX2 |
| 6 | uint8_t c[8]; | 5 | typedef __m256i cube_t; |
| 7 | uint8_t e[12]; | 6 | #else |
| 8 | } cube_t; | 7 | typedef struct { uint8_t c[8]; uint8_t e[12]; } cube_t; |
| 8 | #endif | ||
| 9 | 9 | ||
| 10 | typedef uint8_t move_t; | 10 | typedef uint8_t move_t; |
| 11 | typedef uint8_t trans_t; | 11 | typedef uint8_t trans_t; |
