Skip to content

Commit

Permalink
Fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
basil00 committed Oct 21, 2015
1 parent 89afe1b commit 0f14779
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Gull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ typedef struct {
uint64 bb[16];
uint8 square[64];
} GBoard;
__declspec(align(64)) GBoard Board[1];
__align(64) GBoard Board[1];
uint64 Stack[2048];
int sp, save_sp;
uint64 nodes, check_node, check_node_smp;
Expand All @@ -436,7 +436,7 @@ typedef struct {
int margin, *start, *current;
int moves[230];
} GData;
__declspec(align(64)) GData Data[128];
__align(64) GData Data[128];
GData *Current = Data;
#define FlagSort (1 << 0)
#define FlagNoBcSort (1 << 1)
Expand Down Expand Up @@ -478,11 +478,11 @@ typedef struct {
} GPawnEntry;
#ifndef TUNER
#define pawn_hash_size (1024 * 1024)
__declspec(align(64)) GPawnEntry PawnHash[pawn_hash_size];
__align(64) GPawnEntry PawnHash[pawn_hash_size];
#else
#define pawn_hash_size (32 * 1024)
__declspec(align(64)) GPawnEntry PawnHashOne[pawn_hash_size];
__declspec(align(64)) GPawnEntry PawnHashTwo[pawn_hash_size];
__align(64) GPawnEntry PawnHashOne[pawn_hash_size];
__align(64) GPawnEntry PawnHashTwo[pawn_hash_size];
GPawnEntry * PawnHash = PawnHashOne;
#endif
#define pawn_hash_mask (pawn_hash_size - 1)
Expand Down
1 change: 1 addition & 0 deletions src/Linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ typedef int *GHandle;
typedef int GProcess;

#define __forceinline inline
#define __align(x) __attribute__((aligned(x)))

#endif

0 comments on commit 0f14779

Please sign in to comment.