arch.h (504B)
1 #if defined(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(NEON) 13 14 #include <stdlib.h> 15 #include <arm_neon.h> 16 17 typedef struct { 18 uint8x8_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