diff options
Diffstat (limited to 'cube.c')
| -rw-r--r-- | cube.c | 19 |
1 files changed, 16 insertions, 3 deletions
| @@ -485,11 +485,9 @@ Section: AVX2 fast methods | |||
| 485 | 485 | ||
| 486 | This section contains performance-critical methods that rely on AVX2 | 486 | This section contains performance-critical methods that rely on AVX2 |
| 487 | intructions such as routines for moving or transforming the cube. | 487 | intructions such as routines for moving or transforming the cube. |
| 488 | |||
| 489 | Note: the #ifdef below is closed in the next section. | ||
| 490 | ******************************************************************************/ | 488 | ******************************************************************************/ |
| 491 | 489 | ||
| 492 | #ifdef CUBE_AVX2 | 490 | #if defined(CUBE_AVX2) |
| 493 | 491 | ||
| 494 | #include <immintrin.h> | 492 | #include <immintrin.h> |
| 495 | 493 | ||
| @@ -651,6 +649,21 @@ coord_fast_eo(cube_fast_t c) | |||
| 651 | return mask >> 17; | 649 | return mask >> 17; |
| 652 | } | 650 | } |
| 653 | 651 | ||
| 652 | /****************************************************************************** | ||
| 653 | Section: ARM NEON fast methods | ||
| 654 | |||
| 655 | This section contains performance-critical methods that rely on ARM NEON | ||
| 656 | intructions such as routines for moving or transforming the cube. | ||
| 657 | ******************************************************************************/ | ||
| 658 | |||
| 659 | #elif defined(CUBE_NEON) | ||
| 660 | |||
| 661 | typedef struct { | ||
| 662 | uint8x16_t corner; | ||
| 663 | uint8x16_t edge; | ||
| 664 | } cube_fast_t; | ||
| 665 | |||
| 666 | /* TODO! */ | ||
| 654 | 667 | ||
| 655 | /****************************************************************************** | 668 | /****************************************************************************** |
| 656 | Section: portable fast methods | 669 | Section: portable fast methods |
