diff options
Diffstat (limited to 'src/arch/avx2.h')
| -rw-r--r-- | src/arch/avx2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/avx2.h b/src/arch/avx2.h index 2c3371e..b6ff510 100644 --- a/src/arch/avx2.h +++ b/src/arch/avx2.h | |||
| @@ -16,6 +16,12 @@ | |||
| 16 | #define SOLVED_CUBE STATIC_CUBE( \ | 16 | #define SOLVED_CUBE STATIC_CUBE( \ |
| 17 | 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) | 17 | 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) |
| 18 | 18 | ||
| 19 | STATIC_INLINE int | ||
| 20 | popcount_u32(uint32_t x) | ||
| 21 | { | ||
| 22 | return _mm_popcnt_u32(x); | ||
| 23 | } | ||
| 24 | |||
| 19 | STATIC void | 25 | STATIC void |
| 20 | pieces(cube_t *cube, uint8_t c[static 8], uint8_t e[static 12]) | 26 | pieces(cube_t *cube, uint8_t c[static 8], uint8_t e[static 12]) |
| 21 | { | 27 | { |
