aboutsummaryrefslogtreecommitdiff
path: root/src/arch/arch.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-08-18 14:26:45 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-08-18 14:26:45 +0200
commit18c9a8b8905304cf5f8fc15825769046a3144866 (patch)
treea7807bb32b0a5d9ded7d3cedccc598f64a9b00fe /src/arch/arch.h
parentf25a10e19eca294c4e6a99e4f80ce5cfd11a0e5f (diff)
downloadnissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.tar.gz
nissy-core-18c9a8b8905304cf5f8fc15825769046a3144866.zip
Reorganized folder structure
Diffstat (limited to 'src/arch/arch.h')
-rw-r--r--src/arch/arch.h41
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
5typedef __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
17typedef 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
31typedef 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

Generated with cgit - Back to sebastiano.tronto.net