Files
stockfish/src
Marco Costalba 22c557ca7c Micro-optimize color_of()
In almost all cases we already know in advance that
color_of() argument is different from NO_PIECE.

So avoid the check for NO_PIECE in color_of() and
test at caller site in the very few places where
this case could occur.

As a nice side effect, this patch fixes a (bogus)
warning under some versions of gcc.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2012-12-08 12:32:48 +01:00
..
2012-10-06 13:01:44 +02:00
2012-09-22 11:19:10 +02:00
2012-09-16 10:32:57 +02:00
2012-10-28 10:17:57 +01:00
2012-10-28 10:17:57 +01:00
2012-12-01 14:01:20 +01:00
2012-12-01 14:01:20 +01:00
2012-10-08 11:43:47 +02:00
2012-09-04 09:38:51 +02:00
2012-09-16 14:14:55 +02:00
2012-10-22 10:03:53 +02:00
2012-09-09 10:24:40 +02:00
2012-09-14 09:57:13 +02:00
2012-12-08 12:32:48 +01:00
2011-12-30 13:52:16 +01:00
2012-12-04 08:05:15 +01:00
2012-03-27 14:26:58 +01:00
2012-12-01 15:19:50 +01:00
2012-12-01 15:19:50 +01:00
2012-12-08 12:32:48 +01:00
2012-08-18 12:26:22 +01:00