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 (463B)


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