From d477a0d611ad6f4e11b0e137569eb4b09b349f0f Mon Sep 17 00:00:00 2001 From: lucasart Date: Tue, 17 Mar 2015 22:01:07 +0800 Subject: [PATCH] connected should be bool, not Bitboard There's no reason to define it as a Bitboard, so for consistency, use bool. This is even a speedup on my machine: i7-3770k, using gcc 4.9.1 (linux): stat test master diff mean 2,341,338 2,327,998 13,134 stdev 15,765 14,717 5,405 speedup 0.56% P(speedup>0) 100.0% No functional change. Resolves #298 --- src/pawns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pawns.cpp b/src/pawns.cpp index 14086873..16c902d1 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -110,9 +110,9 @@ namespace { const Square Right = (Us == WHITE ? DELTA_NE : DELTA_SW); const Square Left = (Us == WHITE ? DELTA_NW : DELTA_SE); - Bitboard b, neighbours, doubled, connected, supported, phalanx; + Bitboard b, neighbours, doubled, supported, phalanx; Square s; - bool passed, isolated, opposed, backward, lever; + bool passed, isolated, opposed, backward, lever, connected; Score score = SCORE_ZERO; const Square* pl = pos.list(Us); const Bitboard* pawnAttacksBB = StepAttacksBB[make_piece(Us, PAWN)]; -- 2.39.2