diff options
| author | enricotenuti <tenutz_27@outlook.it> | 2024-08-07 20:09:12 +0200 |
|---|---|---|
| committer | enricotenuti <tenutz_27@outlook.it> | 2024-08-07 20:09:12 +0200 |
| commit | d613e7258bca459a59cdb7b4fb8a7cb041137377 (patch) | |
| tree | 28b3341cf75e2348a26ab9ee44f386c9cda22cfd /test/test.h | |
| parent | f148aa65dfe587e7b5d2f48b5005be670788dbe6 (diff) | |
| download | nissy-core-d613e7258bca459a59cdb7b4fb8a7cb041137377.tar.gz nissy-core-d613e7258bca459a59cdb7b4fb8a7cb041137377.zip | |
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]; |
