Skip to content

Commit

Permalink
Tweak probcut margin with 'improving' flag bench 5328259
Browse files Browse the repository at this point in the history
5328254 is the official bench but 5328259 is correct since official-stockfish/Stockfish@59d1037 was skipped in asmFish. See discussion at lantonov#165 for more details.
  • Loading branch information
CounterPly committed Jun 6, 2018
1 parent f847834 commit f3a4946
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions x86/SearchMacros.asm
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ Display 2, "Search(alpha=%i1, beta=%i2, depth=%i8) called%n"
mov dword [.evalu], eax
mov dword[rbx+State.staticEval], eax
mov rcx, qword[rbx+State.checkersBB]
mov byte[.improving], 1
mov byte[.improving], 0
test rcx, rcx
jnz .moves_loop
mov edx, dword[rbx-1*sizeof.State+State.currentMove]
Expand Down Expand Up @@ -559,8 +559,11 @@ Display 2, "Search(alpha=%i1, beta=%i2, depth=%i8) called%n"
Assert ne, dword[rbx-1*sizeof.State+State.currentMove], 0 , 'assertion dword[rbx-1*sizeof.State+State.currentMove] != MOVE_NONE failed in Search.Step9'
Assert ne, dword[rbx-1*sizeof.State+State.currentMove], MOVE_NULL, 'assertion dword[rbx-1*sizeof.State+State.currentMove] != MOVE_NULL failed in Search.Step9'

movzx ecx, byte[.improving]
imul ecx, 48
mov edi, dword[.beta]
add edi, 200
add edi, 216
sub edi, ecx
mov eax, VALUE_INFINITE
cmp edi, eax
cmovg edi, eax
Expand Down

0 comments on commit f3a4946

Please sign in to comment.