nissy-core

The "engine" of nissy, including the H48 optimal solver.
git clone https://git.tronto.net/nissy-core
Download | Log | Files | Refs | README | LICENSE

arch.h (615B)


      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 #include "coordinates_unoptimized.h"
     11 #endif
     12 
     13 #elif defined(NEON)
     14 
     15 #include <stdlib.h>
     16 #include <arm_neon.h>
     17 
     18 typedef struct {
     19 	uint8x8_t corner;
     20 	uint8x16_t edge;
     21 } cube_t;
     22 
     23 #if !defined(TEST_H)
     24 #include "common.h"
     25 #include "neon.h"
     26 #include "coordinates_unoptimized.h"
     27 #endif
     28 
     29 #else
     30 
     31 #include <stdlib.h>
     32 
     33 typedef struct {
     34 	uint8_t corner[8];
     35 	uint8_t edge[12];
     36 } cube_t;
     37 
     38 #if !defined(TEST_H)
     39 #include "common.h"
     40 #include "portable.h"
     41 #include "coordinates_unoptimized.h"
     42 #endif
     43 
     44 #endif