X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=dae86db310d6d80bc715e99c7aafd9ca482225e4;hp=1def7d00aeb8f200230c7b50911e71c2acfdeb91;hb=481eda4ca0121cfa16f5a29f364ca30ee2852409;hpb=e381951a248ba4c6873dd81527926c6bdcac2aa6 diff --git a/src/types.h b/src/types.h index 1def7d00..dae86db3 100644 --- a/src/types.h +++ b/src/types.h @@ -56,10 +56,11 @@ # include // Intel and Microsoft header for _mm_prefetch() # endif +#define CACHE_LINE_SIZE 64 #if defined(_MSC_VER) || defined(__INTEL_COMPILER) -# define CACHE_LINE_ALIGNMENT __declspec(align(64)) +# define CACHE_LINE_ALIGNMENT __declspec(align(CACHE_LINE_SIZE)) #else -# define CACHE_LINE_ALIGNMENT __attribute__ ((aligned(64))) +# define CACHE_LINE_ALIGNMENT __attribute__ ((aligned(CACHE_LINE_SIZE))) #endif #if defined(_MSC_VER)