Author: Sean Mintz
Date: 16:18:34 01/21/03
Go up one level in this thread
>INLINE int FirstBit(const BitBoard bitboard)
>{
> __asm
> {
> bsf eax,[bitboard+4]
> xor eax, 32
> bsf eax,[bitboard]
> }
>}
>
>INLINE int LastBit(const BitBoard bitboard)
>{
> __asm
> {
> bsr eax,[bitboard]
> sub eax,32
> bsr eax,[bitboard+4]
> add eax,32
> }
>}
I tried using these in crafty and crafty froze up or something. Any ideas why?
This page took 0.01 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.