Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: GCC and FirstBit()

Author: Severi Salminen

Date: 14:31:49 10/18/00

Go up one level in this thread


On October 18, 2000 at 16:13:13, Frank Phillips wrote:

>Can anyone point me to a freeware version of Eugene’s FirstBit(), LastBit() and
>PopCnt() assembly functions for Linux (gcc), preferably in the form of a
>#define for inclusion in a header file.

Is this what you need:

LSB(BB)=BB and -BB
ClearLSB(BB)=BB and (BB-1)

BB is a bitboard...

Check this out:

http://supertech.lcs.mit.edu/~heinz/dt/node7.html




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.