From: Joost VandeVondele Date: Sun, 18 Mar 2018 23:56:19 +0000 (+0100) Subject: Join common code in the stages of next_move() X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=bd59560480cc4f43a4ba75dc827ba27bcebb92dd;hp=bd59560480cc4f43a4ba75dc827ba27bcebb92dd Join common code in the stages of next_move() Rewrite the MovePicker class using lambda expressions for move filtering. Includes code style changes by @mcostalba. Verified for speed, passed STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 43191 W: 9391 L: 9312 D: 24488 http://tests.stockfishchess.org/tests/view/5a99b9df0ebc590297cc8f04 This rewrite of MovePicker.cpp seems to trigger less random crashes on Ryzen machines than the version in previous master (reported by Bojun Guo). Closes https://github.com/official-stockfish/Stockfish/pull/1454 No functional change. ---