Skip to content

Commit

Permalink
verify if quad extensions actually gain
Browse files Browse the repository at this point in the history
bench 1497842
  • Loading branch information
xu-shawn committed May 18, 2024
1 parent 4759764 commit 9c33d8a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1053,11 +1053,9 @@ Value Search::Worker::search(
int doubleMargin = 285 * PvNode - 228 * !ttCapture;
int tripleMargin =
121 + 238 * PvNode - 259 * !ttCapture + 117 * (ss->ttPv || !ttCapture);
int quadMargin = 471 + 343 * PvNode - 281 * !ttCapture + 217 * ss->ttPv;

extension = 1 + (value < singularBeta - doubleMargin)
+ (value < singularBeta - tripleMargin)
+ (value < singularBeta - quadMargin);
+ (value < singularBeta - tripleMargin);

depth += ((!PvNode) && (depth < 14));
}
Expand Down

0 comments on commit 9c33d8a

Please sign in to comment.