Author: Severi Salminen
Date: 05:49:16 01/15/02
Go up one level in this thread
>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... And if you know that there is only one 1-bit, you can use the next: bsr eax,dword ptr b+4 add eax,32 bsr eax,dword ptr b But then again, why not use the allready equally fast FirstBit()... Severi
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.