From: Marco Costalba Date: Thu, 19 Feb 2009 15:28:35 +0000 (+0100) Subject: Cache pinned and discovery check bitboards X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5f142ec2098531bac1780f67579dedbd12d18dcc;hp=5f142ec2098531bac1780f67579dedbd12d18dcc;p=stockfish Cache pinned and discovery check bitboards After have been calculated cache their values so to avoid another expensive call to hidden_checks() if pinned_pieces() or discovered_check_candidates() are called with the same position. Add also interface to get pinners bitboard, we already have this value so save it instead of discard. Now that, after the first call to pinned_pieces() the following are very cheap we can rewrite and cleanup all the checking handling. So this patch is a prerequisite for future work. No functional change. Signed-off-by: Marco Costalba ---