diff options
Diffstat (limited to 'src/arch/neon.h')
| -rw-r--r-- | src/arch/neon.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/arch/neon.h b/src/arch/neon.h index c31c8f9..47dc147 100644 --- a/src/arch/neon.h +++ b/src/arch/neon.h | |||
| @@ -26,6 +26,17 @@ STATIC_INLINE uint8x8_t compose_corners_slim(uint8x8_t, uint8x8_t); | |||
| 26 | #define SOLVED_CUBE STATIC_CUBE( \ | 26 | #define SOLVED_CUBE STATIC_CUBE( \ |
| 27 | 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) | 27 | 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) |
| 28 | 28 | ||
| 29 | /* TODO: optimize this (use intrinsics?) */ | ||
| 30 | STATIC_INLINE int | ||
| 31 | { | ||
| 32 | int ret; | ||
| 33 | |||
| 34 | for (ret = 0; x != 0; x >>= 1) | ||
| 35 | ret += x & 1; | ||
| 36 | |||
| 37 | return ret; | ||
| 38 | } | ||
| 39 | |||
| 29 | STATIC void | 40 | STATIC void |
| 30 | pieces(cube_t *cube, uint8_t c[static 8], uint8_t e[static 12]) | 41 | pieces(cube_t *cube, uint8_t c[static 8], uint8_t e[static 12]) |
| 31 | { | 42 | { |
