diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-08-10 17:40:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-10 17:40:37 +0200 |
| commit | c0d829e588c5d25ee0fc0ff3212658c92c0fb0a8 (patch) | |
| tree | 39811fc48570ef219326fb23b2571ae27c55131a /test/test.h | |
| parent | f148aa65dfe587e7b5d2f48b5005be670788dbe6 (diff) | |
| parent | 23c95fa1b64f35ba56594acc0bf06962647c4ba0 (diff) | |
| download | nissy-core-c0d829e588c5d25ee0fc0ff3212658c92c0fb0a8.tar.gz nissy-core-c0d829e588c5d25ee0fc0ff3212658c92c0fb0a8.zip | |
Merge pull request #1 from enricotenuti/master
cube_neon ver1
Diffstat (limited to 'test/test.h')
| -rw-r--r-- | test/test.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/test.h b/test/test.h index d092244..1f4b2c3 100644 --- a/test/test.h +++ b/test/test.h | |||
| @@ -7,9 +7,16 @@ | |||
| 7 | 7 | ||
| 8 | #define STRLENMAX 10000 | 8 | #define STRLENMAX 10000 |
| 9 | 9 | ||
| 10 | #ifdef CUBE_AVX2 | 10 | #if defined(CUBE_AVX2) |
| 11 | #include <immintrin.h> | 11 | #include <immintrin.h> |
| 12 | typedef __m256i cube_t; | 12 | typedef __m256i cube_t; |
| 13 | #elif defined(CUBE_NEON) | ||
| 14 | #include <stdlib.h> | ||
| 15 | #include <arm_neon.h> | ||
| 16 | typedef struct { | ||
| 17 | uint8x16_t corner; | ||
| 18 | uint8x16_t edge; | ||
| 19 | } cube_t; | ||
| 13 | #else | 20 | #else |
| 14 | typedef struct { | 21 | typedef struct { |
| 15 | uint8_t corner[8]; | 22 | uint8_t corner[8]; |
