Skip to content

Commit

Permalink
[arm] Do move-count pruning in probcut bench 6361568
Browse files Browse the repository at this point in the history
  • Loading branch information
CounterPly committed May 10, 2018
1 parent 7703357 commit ea1193a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file not shown.
9 changes: 9 additions & 0 deletions arm/SearchMacros.arm
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ macro Search PvNode, RootNode
.extension rd 1
.success rd 1 ; for tb
.rbeta rd 1
.probCutCount rd 1
.moved_piece_to_sq rd 1
.reductionOffset rd 1
.skipQuiets rb 1 ; -1 for true
Expand Down Expand Up @@ -570,6 +571,7 @@ Display 2, "Search(alpha=%i1, beta=%i2, depth=%i8, cutNode=%i9) called%n"
.9NoTTMove:
str x25, [x21, State.stage]
str w27, [x21, State.ttMove]
str wzr, [sp, .probCutCount]
.9moveloop:
mov w26, 0
GetNextMove
Expand All @@ -580,6 +582,13 @@ Display 2, "Search(alpha=%i1, beta=%i2, depth=%i8, cutNode=%i9) called%n"
cbz w0, .9moveloop_done
bl Move_IsLegal
cbz w0, .9moveloop
ldr w22,[sp, .depth]
sub w22, w22, 3
ldr w0, [sp, .probCutCount]
cmp w0, w22
bge .9moveloop
add w0, w0, 1
str w0, [sp, .probCutCount]
ldr w1, [sp, .move]
str w1, [x21, State.currentMove]
ubfx w0, w1, 6, 6
Expand Down

0 comments on commit ea1193a

Please sign in to comment.