aboutsummaryrefslogtreecommitdiff
path: root/src/arch/arch.h
blob: aa4a5c5d1c47fde4388b2e06a3b919845969a55b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#if defined(AVX2)

#include <immintrin.h>

typedef __m256i cube_t;

#if !defined(TEST_H)
#include "common.h"
#include "avx2.h"
#endif

#elif defined(NEON)

#include <arm_neon.h>

typedef struct {
	uint8x8_t corner;
	uint8x16_t edge;
} cube_t;

#if !defined(TEST_H)
#include "common.h"
#include "neon.h"
#endif

#else

typedef struct {
	uint8_t corner[8];
	uint8_t edge[12];
} cube_t;

#if !defined(TEST_H)
#include "common.h"
#include "portable.h"
#endif

#endif

Generated with cgit - Back to sebastiano.tronto.net