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-11-11 13:30:20 +01:00
2012-09-30 11:35:14 +02:00
2012-10-21 11:16:21 +02:00
2012-11-02 12:11:49 +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-21 11:16:21 +02:00
2012-08-29 19:11:44 +02:00
2012-10-16 00:13:16 -07:00
2012-10-21 11:16:21 +02:00
2012-10-21 11:16:21 +02: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-08-19 11:01:46 +01:00
2012-10-22 10:03:53 +02:00
2012-09-09 10:24:40 +02:00
2012-10-27 13:31:23 +02:00
2012-09-14 09:57:13 +02:00
2012-10-21 11:16:21 +02:00
2012-10-21 11:16:21 +02:00
2012-10-20 10:48:26 +02:00
2012-12-08 12:32:48 +01:00
2012-11-11 13:30:20 +01:00
2012-10-21 11:16:21 +02:00
2011-12-30 13:52:16 +01:00
2012-12-01 18:11:01 +01:00
2012-10-24 15:01:39 +02:00
2012-10-24 15:01:39 +02:00
2012-12-04 08:05:15 +01:00
2012-03-31 09:16:09 +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-11-11 13:30:20 +01:00
2012-10-13 14:49:01 +02:00
2012-08-18 12:26:22 +01:00