Author: Peter Fendrich
Date: 13:49:22 10/03/02
Go up one level in this thread
On October 03, 2002 at 14:50:23, Bo Persson wrote:
>On October 01, 2002 at 08:19:31, Vincent Diepeveen wrote:
>
>> you need loads of inline assembly for nearly any architecture
>>to keep going and you need a 64 bits processor to not be 2 times slower
>>than a non-bitboarder.
>>
>
>Do you want to see how much asm I need for a bitboard program?
>
>Here it is, in its entirety:
>
> // Assembly helpers
>
>// warning C4035: 'BSR' : no return value
>#pragma warning(disable : 4035)
>
> inline unsigned BSR(unsigned Bits)
> { __asm bsr eax,[Bits] }
>
> inline unsigned BSF(unsigned Bits)
> { __asm bsf eax,[Bits] }
>
>#pragma warning(default : 4035)
>
>
>
>That's it!
>
>
>Bo Persson
>bop2@telia.com
Very short indeed!
Maybe you should add some pruning code to make this program really strong...
Peter
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.