mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Retire CACHE_LINE_ALIGNMENT
Speed tests showed no benefit. No functional change. Resolves #97
This commit is contained in:
parent
8e98bd616e
commit
375797d51c
4 changed files with 0 additions and 15 deletions
|
@ -24,8 +24,6 @@
|
||||||
#include "bitcount.h"
|
#include "bitcount.h"
|
||||||
#include "rkiss.h"
|
#include "rkiss.h"
|
||||||
|
|
||||||
CACHE_LINE_ALIGNMENT
|
|
||||||
|
|
||||||
Bitboard RMasks[SQUARE_NB];
|
Bitboard RMasks[SQUARE_NB];
|
||||||
Bitboard RMagics[SQUARE_NB];
|
Bitboard RMagics[SQUARE_NB];
|
||||||
Bitboard* RAttacks[SQUARE_NB];
|
Bitboard* RAttacks[SQUARE_NB];
|
||||||
|
@ -58,8 +56,6 @@ namespace {
|
||||||
const uint64_t DeBruijn_64 = 0x3F79D71B4CB0A89ULL;
|
const uint64_t DeBruijn_64 = 0x3F79D71B4CB0A89ULL;
|
||||||
const uint32_t DeBruijn_32 = 0x783A9B23;
|
const uint32_t DeBruijn_32 = 0x783A9B23;
|
||||||
|
|
||||||
CACHE_LINE_ALIGNMENT
|
|
||||||
|
|
||||||
int MS1BTable[256];
|
int MS1BTable[256];
|
||||||
Square BSFTable[SQUARE_NB];
|
Square BSFTable[SQUARE_NB];
|
||||||
Bitboard RTable[0x19000]; // Storage space for rook attacks
|
Bitboard RTable[0x19000]; // Storage space for rook attacks
|
||||||
|
|
|
@ -57,8 +57,6 @@ const Bitboard Rank6BB = Rank1BB << (8 * 5);
|
||||||
const Bitboard Rank7BB = Rank1BB << (8 * 6);
|
const Bitboard Rank7BB = Rank1BB << (8 * 6);
|
||||||
const Bitboard Rank8BB = Rank1BB << (8 * 7);
|
const Bitboard Rank8BB = Rank1BB << (8 * 7);
|
||||||
|
|
||||||
CACHE_LINE_ALIGNMENT
|
|
||||||
|
|
||||||
extern Bitboard RMasks[SQUARE_NB];
|
extern Bitboard RMasks[SQUARE_NB];
|
||||||
extern Bitboard RMagics[SQUARE_NB];
|
extern Bitboard RMagics[SQUARE_NB];
|
||||||
extern Bitboard* RAttacks[SQUARE_NB];
|
extern Bitboard* RAttacks[SQUARE_NB];
|
||||||
|
|
|
@ -34,8 +34,6 @@
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
|
||||||
CACHE_LINE_ALIGNMENT
|
|
||||||
|
|
||||||
Value PieceValue[PHASE_NB][PIECE_NB] = {
|
Value PieceValue[PHASE_NB][PIECE_NB] = {
|
||||||
{ VALUE_ZERO, PawnValueMg, KnightValueMg, BishopValueMg, RookValueMg, QueenValueMg },
|
{ VALUE_ZERO, PawnValueMg, KnightValueMg, BishopValueMg, RookValueMg, QueenValueMg },
|
||||||
{ VALUE_ZERO, PawnValueEg, KnightValueEg, BishopValueEg, RookValueEg, QueenValueEg } };
|
{ VALUE_ZERO, PawnValueEg, KnightValueEg, BishopValueEg, RookValueEg, QueenValueEg } };
|
||||||
|
|
|
@ -65,11 +65,6 @@
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
#define CACHE_LINE_SIZE 64
|
#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
|
#ifdef _MSC_VER
|
||||||
# define FORCE_INLINE __forceinline
|
# 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];
|
extern Value PieceValue[PHASE_NB][PIECE_NB];
|
||||||
|
|
||||||
struct ExtMove {
|
struct ExtMove {
|
||||||
|
|
Loading…
Add table
Reference in a new issue