projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
47da2cf
)
Add missing bitboard operator
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Sat, 6 Apr 2019 15:56:11 +0000 (17:56 +0200)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Sat, 6 Apr 2019 15:56:11 +0000 (17:56 +0200)
Fix issues with shogi variants due to upstream merge.
src/bitboard.h
patch
|
blob
|
history
diff --git
a/src/bitboard.h
b/src/bitboard.h
index
38db8e0
..
f7e422a
100644
(file)
--- a/
src/bitboard.h
+++ b/
src/bitboard.h
@@
-149,6
+149,7
@@
inline Bitboard operator^( Bitboard b, Square s) { return b ^ square_bb(s); }
inline Bitboard& operator|=(Bitboard& b, Square s) { return b |= square_bb(s); }
inline Bitboard& operator^=(Bitboard& b, Square s) { return b ^= square_bb(s); }
+inline Bitboard operator-( Bitboard b, Square s) { return b & ~square_bb(s); }
inline Bitboard& operator-=(Bitboard& b, Square s) { return b &= ~square_bb(s); }
constexpr bool more_than_one(Bitboard b) {