Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: "Natural" board orientation for IA32?

Author: Robert Hyatt

Date: 15:45:35 01/25/03

Go up one level in this thread


On January 25, 2003 at 13:20:10, David Rasmussen wrote:

>Talking bitboards, what is the most natural board orientation for IA32
>assembler? I would think that a1=0, a2=1 etc. would be unnatural, for example.
>
>/David


That is irrelevant.  What is important is which bit you number "0".  On a
Cray, the MSB should be "0", while on IA32 the LSB should be zero.

For other machines, you want bit "0" to be the natural number for the first
one bit you can detect.  Most machines will probably want bit 0 = LSB, although
the IBM Power PC is the opposite as it has a hardware instruction to count
leading zeros, just like the Cray...




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.