blob: d5e021865de50ad40d8073ff88054e08dfcc0241 (
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(CUBE_AVX2)
#include <immintrin.h>
typedef __m256i cube_t;
#if !defined(TEST_H)
#include "common.h"
#include "avx2.h"
#endif
#elif defined(CUBE_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
|