]> git.sesse.net Git - stockfish/commitdiff
connected should be bool, not Bitboard
authorlucasart <lucas.braesch@gmail.com>
Tue, 17 Mar 2015 14:01:07 +0000 (22:01 +0800)
committerJoona Kiiski <joona.kiiski@gmail.com>
Wed, 18 Mar 2015 20:21:41 +0000 (20:21 +0000)
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

index 1408687348fa8f485a14406cc52f22e793517ca8..16c902d127c85ac98f7cf3a44a378733d3d24ee7 100644 (file)
@@ -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<PAWN>(Us);
     const Bitboard* pawnAttacksBB = StepAttacksBB[make_piece(Us, PAWN)];