Move depth computation out of fail low loop
authorMarco Costalba <mcostalba@gmail.com>
Fri, 6 Aug 2010 21:30:50 +0000 (22:30 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 6 Aug 2010 21:30:50 +0000 (22:30 +0100)
commit2170fa18bf59f977138f9de2389cbfdd85d84415
tree781bb14ac01978fd374e9595e27a606db8985e78
parentbe540b6dd73eab00444c068fad707e88b223d608
Move depth computation out of fail low loop

In root_search() we can compute depth at the beginning
once and for all.

Spotted by Ralph Stoesser.

No functional change.

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