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

prefetch.h (237B)


      1 #if defined(__GNUC__) || defined(__clang__)
      2     #define prefetch(a, i) __builtin_prefetch(a+i, 0, 0)
      3 #elif defined(AVX2)
      4     #define prefetch(a, i) _mm_prefetch((char *)(a+i), _MM_HINT_T0)
      5 #else
      6     #define prefetch(a, i) (void)i
      7 #endif