]> git.sesse.net Git - stockfish/commitdiff
Retire CACHE_LINE_ALIGNMENT
authorlucasart <lucas.braesch@gmail.com>
Fri, 7 Nov 2014 19:26:23 +0000 (14:26 -0500)
committerGary Linscott <glinscott@gmail.com>
Fri, 7 Nov 2014 19:27:04 +0000 (14:27 -0500)
Speed tests showed no benefit.

No functional change.

Resolves #97

src/bitboard.cpp
src/bitboard.h
src/position.cpp
src/types.h

index b3dbd00be2f6fe5583a2e16ad7c4e2771b504609..aa65d7f812c2814744a48f26f419572d07712429 100644 (file)
@@ -24,8 +24,6 @@
 #include "bitcount.h"
 #include "rkiss.h"
 
 #include "bitcount.h"
 #include "rkiss.h"
 
-CACHE_LINE_ALIGNMENT
-
 Bitboard RMasks[SQUARE_NB];
 Bitboard RMagics[SQUARE_NB];
 Bitboard* RAttacks[SQUARE_NB];
 Bitboard RMasks[SQUARE_NB];
 Bitboard RMagics[SQUARE_NB];
 Bitboard* RAttacks[SQUARE_NB];
@@ -58,8 +56,6 @@ namespace {
   const uint64_t DeBruijn_64 = 0x3F79D71B4CB0A89ULL;
   const uint32_t DeBruijn_32 = 0x783A9B23;
 
   const uint64_t DeBruijn_64 = 0x3F79D71B4CB0A89ULL;
   const uint32_t DeBruijn_32 = 0x783A9B23;
 
-  CACHE_LINE_ALIGNMENT
-
   int MS1BTable[256];
   Square BSFTable[SQUARE_NB];
   Bitboard RTable[0x19000]; // Storage space for rook attacks
   int MS1BTable[256];
   Square BSFTable[SQUARE_NB];
   Bitboard RTable[0x19000]; // Storage space for rook attacks
index 0cf0cd0a83021bb1d0a95abdc811287abc05dea2..a8c0afbcd3cde49532b1ae95b13481a4b0a809f1 100644 (file)
@@ -57,8 +57,6 @@ const Bitboard Rank6BB = Rank1BB << (8 * 5);
 const Bitboard Rank7BB = Rank1BB << (8 * 6);
 const Bitboard Rank8BB = Rank1BB << (8 * 7);
 
 const Bitboard Rank7BB = Rank1BB << (8 * 6);
 const Bitboard Rank8BB = Rank1BB << (8 * 7);
 
-CACHE_LINE_ALIGNMENT
-
 extern Bitboard RMasks[SQUARE_NB];
 extern Bitboard RMagics[SQUARE_NB];
 extern Bitboard* RAttacks[SQUARE_NB];
 extern Bitboard RMasks[SQUARE_NB];
 extern Bitboard RMagics[SQUARE_NB];
 extern Bitboard* RAttacks[SQUARE_NB];
index 732a5e88cb217d53091e3cdae67d78731bf7ac63..d2f8d287670ec2b0efcd4b37c8e8feff3bf3f4fa 100644 (file)
@@ -34,8 +34,6 @@
 
 using std::string;
 
 
 using std::string;
 
-CACHE_LINE_ALIGNMENT
-
 Value PieceValue[PHASE_NB][PIECE_NB] = {
 { VALUE_ZERO, PawnValueMg, KnightValueMg, BishopValueMg, RookValueMg, QueenValueMg },
 { VALUE_ZERO, PawnValueEg, KnightValueEg, BishopValueEg, RookValueEg, QueenValueEg } };
 Value PieceValue[PHASE_NB][PIECE_NB] = {
 { VALUE_ZERO, PawnValueMg, KnightValueMg, BishopValueMg, RookValueMg, QueenValueMg },
 { VALUE_ZERO, PawnValueEg, KnightValueEg, BishopValueEg, RookValueEg, QueenValueEg } };
index 543b38a84752faa6ab3844504e8ecd48d2aee381..a0552fd206c17ea8365082b938ad5b8eb37efc83 100644 (file)
 #  endif
 
 #define CACHE_LINE_SIZE 64
 #  endif
 
 #define CACHE_LINE_SIZE 64
-#if defined(_MSC_VER) || defined(__INTEL_COMPILER)
-#  define CACHE_LINE_ALIGNMENT __declspec(align(CACHE_LINE_SIZE))
-#else
-#  define CACHE_LINE_ALIGNMENT  __attribute__ ((aligned(CACHE_LINE_SIZE)))
-#endif
 
 #ifdef _MSC_VER
 #  define FORCE_INLINE  __forceinline
 
 #ifdef _MSC_VER
 #  define FORCE_INLINE  __forceinline
@@ -326,8 +321,6 @@ inline Score operator/(Score s, int i) {
   return make_score(mg_value(s) / i, eg_value(s) / i);
 }
 
   return make_score(mg_value(s) / i, eg_value(s) / i);
 }
 
-CACHE_LINE_ALIGNMENT
-
 extern Value PieceValue[PHASE_NB][PIECE_NB];
 
 struct ExtMove {
 extern Value PieceValue[PHASE_NB][PIECE_NB];
 
 struct ExtMove {