File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ typedef struct {
413413 uint64 bb[16 ];
414414 uint8 square[64 ];
415415} GBoard;
416- __declspec (align( 64 ) ) GBoard Board[1];
416+ __align ( 64 ) GBoard Board[1];
417417uint64 Stack[2048 ];
418418int sp, save_sp;
419419uint64 nodes, check_node, check_node_smp;
@@ -436,7 +436,7 @@ typedef struct {
436436 int margin, *start, *current;
437437 int moves[230 ];
438438} GData;
439- __declspec (align( 64 ) ) GData Data[128];
439+ __align ( 64 ) GData Data[128];
440440GData *Current = Data;
441441#define FlagSort (1 << 0 )
442442#define FlagNoBcSort (1 << 1 )
@@ -478,11 +478,11 @@ typedef struct {
478478} GPawnEntry;
479479#ifndef TUNER
480480#define pawn_hash_size (1024 * 1024 )
481- __declspec (align( 64 ) ) GPawnEntry PawnHash[pawn_hash_size];
481+ __align ( 64 ) GPawnEntry PawnHash[pawn_hash_size];
482482#else
483483#define pawn_hash_size (32 * 1024 )
484- __declspec (align( 64 ) ) GPawnEntry PawnHashOne[pawn_hash_size];
485- __declspec (align( 64 ) ) GPawnEntry PawnHashTwo[pawn_hash_size];
484+ __align ( 64 ) GPawnEntry PawnHashOne[pawn_hash_size];
485+ __align ( 64 ) GPawnEntry PawnHashTwo[pawn_hash_size];
486486GPawnEntry * PawnHash = PawnHashOne;
487487#endif
488488#define pawn_hash_mask (pawn_hash_size - 1 )
Original file line number Diff line number Diff line change @@ -31,5 +31,6 @@ typedef int *GHandle;
3131typedef int GProcess ;
3232
3333#define __forceinline inline
34+ #define __align (x ) __attribute__((aligned(x)))
3435
3536#endif
You can’t perform that action at this time.
0 commit comments