Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Modulo verus BitScan and MMX-PopCount

Author: Russell Reagan

Date: 20:27:56 11/30/02

Go up one level in this thread


On November 30, 2002 at 17:44:59, Gerd Isenberg wrote:

>Btw. the above routine is a bit suspicious because the manuals say that
>bsf(reg32, zero) leaves the target register undefined (may be under some strange
>conditions).

int BitSearch_v1 (BitBoard bb)
{
	__asm
	{
		bsf	eax,[bb]
		jnz	found
		bsf	eax,[bb+4]
		xor	eax, 32
	found:
	}
}

How about that one? Is it suspicious? Or should this work according to the
documentation?



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.