@@ -102,13 +102,13 @@ namespace {
102102
103103 while (b1)
104104 {
105- Square to = pop_lsb (& b1);
105+ Square to = pop_lsb (b1);
106106 *moveList++ = make_move (to - Up, to);
107107 }
108108
109109 while (b2)
110110 {
111- Square to = pop_lsb (& b2);
111+ Square to = pop_lsb (b2);
112112 *moveList++ = make_move (to - Up - Up, to);
113113 }
114114 }
@@ -127,13 +127,13 @@ namespace {
127127 Bitboard b3 = shift<Up >(pawnsOn7) & emptySquares;
128128
129129 while (b1)
130- moveList = make_promotions<Type, UpRight>(moveList, pop_lsb (& b1), ksq);
130+ moveList = make_promotions<Type, UpRight>(moveList, pop_lsb (b1), ksq);
131131
132132 while (b2)
133- moveList = make_promotions<Type, UpLeft >(moveList, pop_lsb (& b2), ksq);
133+ moveList = make_promotions<Type, UpLeft >(moveList, pop_lsb (b2), ksq);
134134
135135 while (b3)
136- moveList = make_promotions<Type, Up >(moveList, pop_lsb (& b3), ksq);
136+ moveList = make_promotions<Type, Up >(moveList, pop_lsb (b3), ksq);
137137 }
138138
139139 // Standard and en passant captures
@@ -144,13 +144,13 @@ namespace {
144144
145145 while (b1)
146146 {
147- Square to = pop_lsb (& b1);
147+ Square to = pop_lsb (b1);
148148 *moveList++ = make_move (to - UpRight, to);
149149 }
150150
151151 while (b2)
152152 {
153- Square to = pop_lsb (& b2);
153+ Square to = pop_lsb (b2);
154154 *moveList++ = make_move (to - UpLeft, to);
155155 }
156156
@@ -167,7 +167,7 @@ namespace {
167167 assert (b1);
168168
169169 while (b1)
170- *moveList++ = make<EN_PASSANT>(pop_lsb (& b1), pos.ep_square ());
170+ *moveList++ = make<EN_PASSANT>(pop_lsb (b1), pos.ep_square ());
171171 }
172172 }
173173
@@ -183,14 +183,14 @@ namespace {
183183 Bitboard bb = piecesToMove & pos.pieces (Pt);
184184
185185 while (bb) {
186- Square from = pop_lsb (& bb);
186+ Square from = pop_lsb (bb);
187187
188188 Bitboard b = attacks_bb<Pt>(from, pos.pieces ()) & target;
189189 if constexpr (Checks)
190190 b &= pos.check_squares (Pt);
191191
192192 while (b)
193- *moveList++ = make_move (from, pop_lsb (& b));
193+ *moveList++ = make_move (from, pop_lsb (b));
194194 }
195195
196196 return moveList;
@@ -236,7 +236,7 @@ namespace {
236236 Square ksq = pos.square <KING>(Us);
237237 Bitboard b = attacks_bb<KING>(ksq) & target;
238238 while (b)
239- *moveList++ = make_move (ksq, pop_lsb (& b));
239+ *moveList++ = make_move (ksq, pop_lsb (b));
240240
241241 if ((Type != CAPTURES) && pos.can_castle (Us & ANY_CASTLING))
242242 for (CastlingRights cr : { Us & KING_SIDE, Us & QUEEN_SIDE } )
@@ -286,7 +286,7 @@ ExtMove* generate<QUIET_CHECKS>(const Position& pos, ExtMove* moveList) {
286286
287287 while (dc)
288288 {
289- Square from = pop_lsb (& dc);
289+ Square from = pop_lsb (dc);
290290 PieceType pt = type_of (pos.piece_on (from));
291291
292292 Bitboard b = attacks_bb (pt, from, pos.pieces ()) & ~pos.pieces ();
@@ -295,7 +295,7 @@ ExtMove* generate<QUIET_CHECKS>(const Position& pos, ExtMove* moveList) {
295295 b &= ~attacks_bb<QUEEN>(pos.square <KING>(~us));
296296
297297 while (b)
298- *moveList++ = make_move (from, pop_lsb (& b));
298+ *moveList++ = make_move (from, pop_lsb (b));
299299 }
300300
301301 return us == WHITE ? generate_all<WHITE, QUIET_CHECKS>(pos, moveList)
@@ -319,12 +319,12 @@ ExtMove* generate<EVASIONS>(const Position& pos, ExtMove* moveList) {
319319 // the king evasions in order to skip known illegal moves, which avoids any
320320 // useless legality checks later on.
321321 while (sliders)
322- sliderAttacks |= line_bb (ksq, pop_lsb (& sliders)) & ~pos.checkers ();
322+ sliderAttacks |= line_bb (ksq, pop_lsb (sliders)) & ~pos.checkers ();
323323
324324 // Generate evasions for king, capture and non capture moves
325325 Bitboard b = attacks_bb<KING>(ksq) & ~pos.pieces (us) & ~sliderAttacks;
326326 while (b)
327- *moveList++ = make_move (ksq, pop_lsb (& b));
327+ *moveList++ = make_move (ksq, pop_lsb (b));
328328
329329 if (more_than_one (pos.checkers ()))
330330 return moveList; // Double check, only a king move can save the day
0 commit comments