]> git.sesse.net Git - stockfish/commitdiff
Double magics generation speed
authorMarco Costalba <mcostalba@gmail.com>
Sun, 22 Mar 2015 10:27:32 +0000 (11:27 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 23 Mar 2015 16:10:38 +0000 (17:10 +0100)
Profiling shows that resetting attacks table after
a failed candidate magic attempt is the biggest
time consumer, so rewrite the logic avoiding the
memset()

Magics init for rook+bishop goes from 200msecs to
under 100msec.

No functional change.


No differences found