Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How can you get the number of a bit which is set in a bitboard ?

Author: Andrew Slough

Date: 11:12:46 08/20/99

Go up one level in this thread


If you know there is only one bit set, then you don't need the (w&(-w)), which
is a standard bit-twiddling trick to isolate the bottom bit in a word.

Andy



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.