diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-08-18 14:26:45 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-08-18 14:26:45 +0200 |
| commit | 18c9a8b8905304cf5f8fc15825769046a3144866 (patch) | |
| tree | a7807bb32b0a5d9ded7d3cedccc598f64a9b00fe /src/arch/arch.h | |
| parent | f25a10e19eca294c4e6a99e4f80ce5cfd11a0e5f (diff) | |
| download | nissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.tar.gz nissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.zip | |
Reorganized folder structure
Diffstat (limited to 'src/arch/arch.h')
| -rw-r--r-- | src/arch/arch.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/arch/arch.h b/src/arch/arch.h new file mode 100644 index 0000000..d5e0218 --- /dev/null +++ b/src/arch/arch.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | #if defined(CUBE_AVX2) | ||
| 2 | |||
| 3 | #include <immintrin.h> | ||
| 4 | |||
| 5 | typedef __m256i cube_t; | ||
| 6 | |||
| 7 | #if !defined(TEST_H) | ||
| 8 | #include "common.h" | ||
| 9 | #include "avx2.h" | ||
| 10 | #endif | ||
| 11 | |||
| 12 | #elif defined(CUBE_NEON) | ||
| 13 | |||
| 14 | #include <stdlib.h> | ||
| 15 | #include <arm_neon.h> | ||
| 16 | |||
| 17 | typedef struct { | ||
| 18 | uint8x16_t corner; | ||
| 19 | uint8x16_t edge; | ||
| 20 | } cube_t; | ||
| 21 | |||
| 22 | #if !defined(TEST_H) | ||
| 23 | #include "common.h" | ||
| 24 | #include "neon.h" | ||
| 25 | #endif | ||
| 26 | |||
| 27 | #else | ||
| 28 | |||
| 29 | #include <stdlib.h> | ||
| 30 | |||
| 31 | typedef struct { | ||
| 32 | uint8_t corner[8]; | ||
| 33 | uint8_t edge[12]; | ||
| 34 | } cube_t; | ||
| 35 | |||
| 36 | #if !defined(TEST_H) | ||
| 37 | #include "common.h" | ||
| 38 | #include "portable.h" | ||
| 39 | #endif | ||
| 40 | |||
| 41 | #endif | ||
