Skip to content

Commit 3f1eb66

Browse files
Daniel WhiteDaniel White
authored andcommitted
Combined two flow control statements to save 7 bytes.
1 parent b4bade5 commit 3f1eb66

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

iota.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,9 @@ D(x, y, p, e) {
5353
B[f]=m;
5454
B[t]=v
5555

56-
I (m&16 && f==x & t+d==y) | // If GUI has given us a castling move,
57-
(m&128 && t==f+d & !(d%2))) // or double pawn first move, loop once more.
58-
continue
59-
6056
// Hit a piece or non-slider?
61-
I v | m&8 K
57+
// Also check for special cases of double initial pawn move or castling.
58+
I (v | m&8) && (!(m&16) | f-x | t+d-y) && (!(m&128) | t-f-d | d%2) K
6259
}
6360
}
6461
}

0 commit comments

Comments
 (0)