Commit Graph

  • 5c944fb3b4 Add one assert Joona Kiiski 2010-02-23 12:07:58 +02:00
  • c974d9ef33 Do not wait for threads falling asleep Joona Kiiski 2010-02-23 12:05:26 +02:00
  • 12feb5866f Remove unnecessary conditions from if-clauses and replace them with asserts Joona Kiiski 2010-02-23 12:00:56 +02:00
  • 80810e4951 Fix crash in debug mode Joona Kiiski 2010-02-22 15:42:12 +02:00
  • c67b9916f1 Fix some races Joona Kiiski 2010-02-22 15:15:55 +02:00
  • 78c6bb1079 Fix one assert Joona Kiiski 2010-02-22 15:00:30 +02:00
  • 85e60bfc8e Fix compile errors in debug mode Joona Kiiski 2010-02-22 14:59:01 +02:00
  • 79b57dd4ca Document struct SplitPoint fields constness Marco Costalba 2010-02-21 16:10:19 +01:00
  • b9537edbb0 Beta is never changed after an sp_search() Marco Costalba 2010-02-21 15:28:27 +01:00
  • d38f4f61e7 Supress make warning on missing .depend file Marco Costalba 2010-02-21 15:18:35 +01:00
  • 27c74c5245 Fix an icc warning Marco Costalba 2010-02-21 15:07:53 +01:00
  • 2f2e8a68d8 Code style triviality in split() Marco Costalba 2010-02-21 14:05:38 +01:00
  • 1ea70dd9dd Fix a warning with POPCNT and MSVC Marco Costalba 2010-02-21 13:44:36 +01:00
  • 13c096f839 Revert "Recursive lock" Marco Costalba 2010-02-20 23:56:02 +01:00
  • 2de2b76896 Remove a couple of useless thread_should_stop() calls Marco Costalba 2010-02-20 23:48:54 +01:00
  • 8b99e94562 Revert small state change optimization in idle_loop() Marco Costalba 2010-02-20 18:36:07 +01:00
  • 512a4e4ff0 Recursive lock all split point's chain Marco Costalba 2010-02-20 18:29:53 +01:00
  • 2da290d72b Retire per-thread stopRequest flag Marco Costalba 2010-02-20 17:52:09 +01:00
  • b39a24ecca Use state instead of flags to track threads Marco Costalba 2010-02-20 14:57:26 +01:00
  • 189a005a0b Rename THREAD_MAX in MAX_THREADS Marco Costalba 2010-02-20 13:38:04 +01:00
  • 7c61b8ad2a Search negative SEE moves in qsearch in PV Joona Kiiski 2010-02-12 10:53:03 +02:00
  • a093f33154 Use zero null move margin when depth < 4 * OnePly Joona Kiiski 2010-02-12 16:40:00 +02:00
  • 0895f1ac71 Fix another setting of a flag out of lock protection Marco Costalba 2010-02-14 16:29:28 +01:00
  • b29198354c Rename flag 'stop' in 'stopRequest' Marco Costalba 2010-02-14 16:04:53 +01:00
  • 40a7ffd53f Reset thread flags to a known state before to exit think() Marco Costalba 2010-02-14 15:58:46 +01:00
  • 8eae6a95fb Fix 'stop' flag changed out of lock protection Marco Costalba 2010-02-14 13:31:05 +01:00
  • 2b740f5495 Introduce ThreadsManager class Marco Costalba 2010-02-13 13:38:32 +01:00
  • fb5ba1d329 Fix compile error under gcc Marco Costalba 2010-02-13 13:40:23 +01:00
  • 78e494fcbc Ensure function boundaries for threads state changes Marco Costalba 2010-02-13 12:39:27 +01:00
  • a16415f44d Rename stop_threads() to exit_threads() Marco Costalba 2010-02-13 12:07:13 +01:00
  • 8a504d36f9 Be sure threads are woken in wake_sleeping_threads() Marco Costalba 2010-02-13 12:02:34 +01:00
  • 093dd8fe88 Use Thread c'tor to properly init the struct Marco Costalba 2010-02-13 11:40:55 +01:00
  • 6382324afd Add 'sleeping' flag to struct Thread Marco Costalba 2010-02-13 11:22:57 +01:00
  • cb08413dc4 Allow build on HP-UX 11.X Marco Costalba 2010-02-12 06:49:16 +01:00
  • 711ef615c7 Fix a couple of new MSVC 2010 warnings Marco Costalba 2010-02-10 21:27:44 +01:00
  • 74203e181d Retire EvalInfo* in SearchStack Marco Costalba 2010-02-08 10:48:58 +01:00
  • 97fe0ac777 Small code style triviality Marco Costalba 2010-02-07 13:19:10 +01:00
  • 7ae16a193b Implement init_search() Joona Kiiski 2010-02-07 13:15:39 +02:00
  • 8261f61964 Document lookup tables Joona Kiiski 2010-02-07 10:53:15 +02:00
  • 6e1cb6e45b Implement futility move count array Joona Kiiski 2010-02-07 10:42:40 +02:00
  • 4bfa0c429e Implement futility margins matrix Joona Kiiski 2010-02-07 09:40:14 +02:00
  • 2e70a2873f Use gain table to order non-captures Marco Costalba 2010-02-04 19:24:41 +01:00
  • 9429d2d028 Use posKey instead of pos.get_key() after NonPVIID Joona Kiiski 2010-02-06 18:18:12 +02:00
  • d44fa46082 Use opening book when pondering Joona Kiiski 2010-02-06 15:55:44 +02:00
  • c7866a4215 Delay sorting of negative scored non-captures Marco Costalba 2010-02-05 18:17:52 +01:00
  • 69644d3f73 Copy 4 SearchStack items in split() Joona Kiiski 2010-02-05 18:05:48 +02:00
  • b0858877ae Remove sorting optimization for many zeroes Marco Costalba 2010-02-05 17:37:33 +01:00
  • 321f6d1d19 Give FailLow flag more descriptive name Joona Kiiski 2010-02-05 15:20:38 +02:00
  • e738fa7d10 Remove Problem variable Joona Kiiski 2010-02-05 15:12:48 +02:00
  • c5d546e18e Remove unused failHighPly1 flag Joona Kiiski 2010-02-05 14:24:28 +02:00
  • 8d65fcc0f3 Remove unused FailHigh flag Joona Kiiski 2010-02-05 14:21:22 +02:00
  • d8e5b8c133 Simplify time management Joona Kiiski 2010-02-05 14:17:38 +02:00
  • 6fe36d13de Be sure negative see evasions are at the bottom Marco Costalba 2010-02-05 08:19:39 +01:00
  • 337ec0f3d0 Score non-captures only by history Marco Costalba 2010-02-03 19:36:53 +01:00
  • 5b1043ee11 Reduction lookup table Joona Kiiski 2010-02-04 18:09:07 +02:00
  • 439aea9ab7 Convert gains to use a piece-to mapping Marco Costalba 2010-02-02 09:10:15 +01:00
  • 770db27164 Fix a compile error from previous patch Marco Costalba 2010-02-02 19:01:24 +01:00
  • 21d32aa7fe Fix indentations Joona Kiiski 2010-02-02 19:25:20 +02:00
  • 95d33aef9f Retire outdated aspiration search code Joona Kiiski 2010-02-02 19:21:49 +02:00
  • b5a4edd86f Renamed stand pat as 'static null move pruning' Marco Costalba 2010-02-02 08:51:54 +01:00
  • 48cfdfcc46 Fix threads count setting sf_1.6.3 Marco Costalba 2010-01-09 16:45:31 +01:00
  • fa7b244dc9 Optimal tune for 8 cores Marco Costalba 2010-01-08 12:51:11 +01:00
  • 35ada63174 Save futilityMargin for both colors Marco Costalba 2010-02-01 20:06:56 +01:00
  • 29ad6a73fc Fix duplicated scaling function Marco Costalba 2010-02-01 19:32:02 +01:00
  • 06a695d5b8 Fix duplicated scaling function Marco Costalba 2010-02-01 19:32:02 +01:00
  • 4b55d3d883 Increase TT size limit to 8 GB Marco Costalba 2010-02-01 16:53:10 +01:00
  • ac48b16708 Update release number Marco Costalba 2010-02-01 14:59:55 +01:00
  • 8008f78415 Check bounds in set_option_value() Marco Costalba 2010-02-01 14:06:59 +01:00
  • 38b1c4b6b8 Another TT size limit fix attempt Marco Costalba 2010-02-01 14:17:00 +01:00
  • 162dbeaee8 Remove a bogus assert Marco Costalba 2010-02-01 14:09:23 +01:00
  • 85146ca0a9 Check bounds in set_option_value() Marco Costalba 2010-02-01 14:06:59 +01:00
  • 02e12a69a7 Remove InfiniteSearch hack Joona Kiiski 2010-01-26 19:05:06 +02:00
  • 6e8116e38f Make sure we make a move at the end of the search when reaching maximum depth during a "go movetime ..." search. This prevents Stockfish from hanging forever after finding a mate in two or three while running a test suite at a level of a few seconds per move. Tord Romstad 2010-01-22 13:42:33 +01:00
  • 29f7fab2a9 Do not wait when AbortSearch is set Marco Costalba 2010-01-11 11:15:23 +01:00
  • 2af986bf31 Fix sending of best move during an infinite search Marco Costalba 2010-01-10 12:38:59 +01:00
  • b67146b100 Add hardware POPCNT support for gcc Marco Costalba 2010-01-30 19:18:27 +01:00
  • c1b1a94d81 Standardize set_option function Joona Kiiski 2010-01-27 10:37:12 +02:00
  • 17212e5fcc Remove last use of uip.eof() Joona Kiiski 2010-01-26 18:55:27 +02:00
  • 46921dff27 Fix a couple of MSVC casting warnings Marco Costalba 2010-01-25 11:18:35 +01:00
  • 941016e7a2 Check for thread creation successful completion Marco Costalba 2010-01-24 12:24:01 +01:00
  • 290caf9960 Fixes a Chess960 bug when playing with more than one search thread. Tord Romstad 2010-01-24 16:09:32 +01:00
  • 43fa3a4d64 Fix some races in SMP code Marco Costalba 2010-01-24 13:46:27 +01:00
  • 64b4836d12 Fix enum Value issue with gcc 4.4 Marco Costalba 2010-01-19 23:30:23 +01:00
  • 5df7d62eb9 Fix 'position ..... moves ' parsing bug Marco Costalba 2010-01-07 11:59:32 +01:00
  • 82179c70dc Fix en-passant parsing from fen string Marco Costalba 2010-01-06 09:58:41 +01:00
  • de17652e47 Fix a possible crash in thread_is_available() Marco Costalba 2010-01-25 22:18:12 +01:00
  • 647b79b556 Extend maximum hash size to 8 GB Marco Costalba 2010-02-01 12:12:41 +01:00
  • 3941e4bdb3 Some code style triviality in root search Marco Costalba 2010-01-31 11:08:04 +01:00
  • d7d2c1b7e3 Add hardware POPCNT support for gcc Marco Costalba 2010-01-30 19:18:27 +01:00
  • 17502a5659 Revert "Remove pointless gcc flag when generating dependencies" Marco Costalba 2010-01-30 10:35:04 +01:00
  • e84488ed6b Retire captures pruning Marco Costalba 2010-01-29 00:16:00 +01:00
  • 252844e899 Avoid search tree explosion in qsearch Marco Costalba 2010-01-29 16:47:04 +01:00
  • b651e5334b Correct qsearch() TT save Joona Kiiski 2010-01-29 10:13:21 +02:00
  • bd358533a4 Stricter conditions in main search stand pat Marco Costalba 2010-01-27 12:05:27 +01:00
  • e4d3a15656 Use float instead of double in reduction parameters Marco Costalba 2010-01-28 12:47:48 +01:00
  • 1d7a3f26e0 Micro optimize reduction_parameters() Marco Costalba 2010-01-28 12:39:15 +01:00
  • a0005ba45f Avoid to calculate reduction for each move Marco Costalba 2010-01-28 12:14:27 +01:00
  • bdd61b1744 Remove useless variable 'PostFutilityValueMargin' Joona Kiiski 2010-01-28 00:02:51 +02:00
  • 973e574e1f Precalculate FutilityMargins Joona Kiiski 2010-01-27 23:54:01 +02:00
  • 27393ebae2 Use calculate_reduction() function to simplify code Joona Kiiski 2010-01-27 23:24:01 +02:00