Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: LSB and POPCOUNT optimization

Author: Adriano Bedeschi de Souza

Date: 12:19:38 06/18/02

Go up one level in this thread


On June 18, 2002 at 13:14:28, Gerd Isenberg wrote:

>// msb in with inline asm
>
>#ifdef	_M_IX86
>__forceinline unsigned int BitSearchReverse(BitBoard bb)
>{
>	__asm
>	{
>		bsr		eax,[bb]
>		bsr		eax,[bb+4]
>		setnz	dl
>		shl		dl, 5
>		add		al, dl
>	}
>}
>#endif
>
>
>regards,
>Gerd

What about MSB without asm =)

thx for all,
Bedeschi



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.