Skip to content

Commit 82cafa5

Browse files
author
syzygy
committed
Fix compilation error on ARM.
The Makefile will likely still give problems, though.
1 parent 741551e commit 82cafa5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/bitboard.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,18 @@ INLINE __attribute__((pure)) Bitboard sq_bb(Square s)
9090
// return b;
9191
}
9292

93+
#if __x86_64__
9394
INLINE Bitboard inv_sq(Bitboard b, uint32_t s)
9495
{
9596
__asm__("btcq %1, %0" : "+r" (b) : "r" ((uint64_t)s) : "cc");
9697
return b;
9798
}
99+
#else
100+
INLINE Bitboard inv_sq(Bitboard b, uint32_t s)
101+
{
102+
return b ^ sq_bb(s);
103+
}
104+
#endif
98105

99106
INLINE uint64_t more_than_one(Bitboard b)
100107
{

src/tt.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ static_assert(CacheLineSize % sizeof(Cluster) == 0, "Cluster size incorrect");
112112

113113
struct TranspositionTable {
114114
size_t clusterCount;
115-
int largePages;
116115
Cluster *table;
117116
void *mem;
118117
size_t alloc_size;

0 commit comments

Comments
 (0)