Skip to content

Conversation

@mstembera
Copy link
Contributor

I initially wrote this as a speed optimization but because Intel has done a great job making the ADD instruction with carry as fast as a bitwise OR it is exactly the same speed. I'm submitting it anyway because from a purist point of view the bitwise OR better reflects that the index is a series of bitfields as documented in the comment section instead of a number arrived at through an algebraic expression. Also it might still be faster on more primitive architectures. I realize this is very nit picky so if you don't like it just close the pull request. No functional change.

@lucasart
Copy link

agree. or is more self-documenting than add.

@zamar
Copy link

zamar commented Nov 25, 2014

Approved.

@glinscott
Copy link
Contributor

Looks good.

@glinscott glinscott closed this in fe07ae4 Nov 25, 2014
niklasf pushed a commit to niklasf/Stockfish that referenced this pull request Nov 28, 2016
Fix detection of final positions in racing kings
Alayan-stk-2 added a commit to Alayan-stk-2/Stockfish that referenced this pull request Feb 27, 2020
…icial-stockfish#132)

Inspired by Vizvezdenec's patch for Stockfish.

ELO   | 3.12 +- 2.45 (95%)
SPRT  | 12.0+0.12s Threads=1 Hash=8MB
LLR   | 3.01 (-2.94, 2.94) [0.00, 5.00]
Games | N: 37600 W: 9351 L: 9013 D: 19236
http://chess.grantnet.us/viewTest/4725/

ELO   | 2.38 +- 1.80 (95%)
SPRT  | 60.0+0.6s Threads=1 Hash=64MB
LLR   | 2.97 (-2.94, 2.94) [0.00, 5.00]
Games | N: 56428 W: 11335 L: 10949 D: 34144
http://chess.grantnet.us/viewTest/4728/

BENCH : 6,225,718
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants