Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Assembly Programmers Challenge! (repost and clarification)

Author: David Rasmussen

Date: 16:56:18 01/21/03

Go up one level in this thread


On January 21, 2003 at 19:47:37, David Rasmussen wrote:

>
>These worked for me (although not faster. I guess the compilers were optimizing
>the superfluous loads away). The PopCount() on the other hand, does not work for
>me.
>
>/David

Executing for example this line:

	cout << "COUNT: " << PopCount(BitBoard(0xFFFFF8)) << endl;

outputs

COUNT: 5

and

	cout << "COUNT: " << PopCount(BitBoard(0xFFFF88)) << endl;

outputs

COUNT: 2

and

	cout << "COUNT: " << PopCount(BitBoard(0xF8)) << endl;

outputs: 5

It only seems to look at the first byte of the input, and the numbers returned
are nonsense.

/David




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.