diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-12-26 16:46:01 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-12-26 16:46:01 +0100 |
| commit | 861a8a5fc4b62e5f70081f8e72b0854889a6cec6 (patch) | |
| tree | cb3e5073f2f57e8330caa815c2e3ffd298f8dbab /cube.c | |
| parent | 8c281789799a3954e94c7eeb10fb09e526005e1f (diff) | |
| parent | 3116eeb625a17106096b0a605e8142cfff700ac8 (diff) | |
| download | nissy-core-861a8a5fc4b62e5f70081f8e72b0854889a6cec6.tar.gz nissy-core-861a8a5fc4b62e5f70081f8e72b0854889a6cec6.zip | |
Merge branch 'master' of tronto.net:h48
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 |
