aboutsummaryrefslogtreecommitdiff
path: root/src/arch/arch.h
blob: e5de0cf3e460a2f9ff1793d486fcb7c08bbc4aa9 (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
39
40
41
#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 <stdlib.h>
#include <arm_neon.h>

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

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

#else

#include <stdlib.h>

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