Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: fast bit counting

Author: Steve Maughan

Date: 01:02:17 04/19/00

Go up one level in this thread


Flemming,

>1) The position of the first and/or last bit in a sequence of 64 bits.

The x86 instruction is BSF.

>2) Count the number of bits that are 1 in a sequence of 64 bits.

I use a lookup table.



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.