Changes

Jump to: navigation, search

BitScan

173 bytes added, 10:58, 3 May 2019
no edit summary
<span id="BitscanwithReset"></span>
=Bitscan with Reset=
While [[Bitboard Serialization|traversing sets]], one may combine bitscanning with reset found bit. That implies passing the bitboard per reference or pointer, and tends to confuse compilers to keep all inside registers inside a typical serialization loop <ref>[https://www.stmintz.com/ccc/index.php?id=283655 Bitscan] by [[Matt Taylor]], [[CCC]], February 11, 2003</ref> <ref>[http://www.talkchess.com/forum3/viewtopic.php?f=7&t=70202 CPW bitscan with reset could someone explain this line?] by [[Mahmoud Uthman]], [[CCC]], March 14, 2019</ref> .
<pre>
int bitScanForwardWithReset(U64 &bb) { // also called dropForward

Navigation menu