Changes

Jump to: navigation, search

On an empty Board

9 bytes added, 00:44, 18 January 2022
no edit summary
}
</pre>
The [[General Setwise Operations#GeneralizedShift|generalized shift]] version for [[Diagonals|diagonals]] and [[Anti-Diagonals|antidiagonals]] as introduced by [[Thomas Jahn]] <ref>[https://www.talkchess.com/forum3/viewtopic.php?f=7&t=79140&start=10 Re: <nowiki>[Question] </nowiki> Efficiently generate ray masks?] by [[Thomas Jahn]], [[CCC]], January 17, 2022</ref> produces shorter and faster code on modern [[x86-64]] processors due to [[BMI2]] shift instructions not affecting the flags <ref>[https://www.felixcloutier.com/x86/sarx:shlx:shrx SARX/SHLX/SHRX — Shift Without Affecting Flags]</ref>:
<pre>
U64 diagonalMask(int sq) {

Navigation menu