]> git.sesse.net Git - stockfish/commit
Unite sp_search() and sp_search_pv()
authorJoona Kiiski <joona.kiiski@gmail.com>
Sun, 9 May 2010 18:59:39 +0000 (21:59 +0300)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 11 May 2010 06:05:17 +0000 (07:05 +0100)
commit253428bb3f491d4119a127f5d81be77c372f09b8
treea08b447643fd838fcb246b3d4a1cb760c9ac771d
parent36f4fe52f0aa33ea642a2d1a04b3fef04f6046d3
Unite sp_search() and sp_search_pv()

Also introduce a new rule:
In sp_search() always must hold: sp->alpha < sp->beta
Should fix some rear but very nasty races

To keep everything in sync, search() is also modified to
obey this rule. Because this affects only PV-nodes, should
have zero meaning to speed.

No functional change in fake mode

Regression test after 854 games
Mod vs Orig 433 - 421, no crashes.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp