Revert "Generalize shift_bb() to handle double pushes"

Seems to intorduce some compiler warning as
reported by Gary. Warning seems bogus, but
revert anyhow.

No functional change.
This commit is contained in:
Marco Costalba
2014-04-21 20:54:55 +02:00
parent 56273fca1e
commit a66e6e5ad9
2 changed files with 6 additions and 7 deletions

View File

@@ -130,9 +130,10 @@ inline int rank_distance(Square s1, Square s2) {
template<Square Delta>
inline Bitboard shift_bb(Bitboard b) {
return Delta == DELTA_NE ? (b & ~FileHBB) << 9 : Delta == DELTA_SE ? (b & ~FileHBB) >> 7
return Delta == DELTA_N ? b << 8 : Delta == DELTA_S ? b >> 8
: Delta == DELTA_NE ? (b & ~FileHBB) << 9 : Delta == DELTA_SE ? (b & ~FileHBB) >> 7
: Delta == DELTA_NW ? (b & ~FileABB) << 7 : Delta == DELTA_SW ? (b & ~FileABB) >> 9
: Delta > 0 ? b << Delta : b >> -Delta;
: 0;
}