diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-05 16:29:14 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-05 16:37:39 +0100 |
| commit | 1964938ca6abef6e5c81d9dccdf42c55abacb5e9 (patch) | |
| tree | 9908417751ddf22e45ea68da0f209083249ac08e /cube.h | |
| parent | 9c1659d91a331735f88c127aa236a59153e23dfc (diff) | |
| download | nissy-core-1964938ca6abef6e5c81d9dccdf42c55abacb5e9.tar.gz nissy-core-1964938ca6abef6e5c81d9dccdf42c55abacb5e9.zip | |
Refactoring
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; |
