Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: FirstBit() in assembler

Author: David Rasmussen

Date: 14:43:41 01/14/02

Go up one level in this thread


On January 14, 2002 at 15:19:31, Dan Newman wrote:

>
>I think something like this should work:
>
>        bsr eax dword ptr bitboard
>        sub eax 32
>        bsr eax dword ptr bitboard+4
>        add eax 32
>
>which makes using last-bit a bit more expensive, but it's still
>straight line code...
>
>-Dan.

Oh yeah, of course. I can't see why I didn't see that myself...

/David (getting dumber by the minute)



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.