Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Is it good to give a function a struct of 4 chars or maybe it is

Author: Uri Blass

Date: 04:07:30 04/16/03

Go up one level in this thread


On April 16, 2003 at 05:58:54, Tom Kerrigan wrote:

>These data structures look very familiar. ;)

Yes

The structure is taken from your program tscp.

I started movei by copying part of the data structures of tscp
but not all of it(for example I never used mailbox) and I have a lot of
data structures that are not used by tscp.

I may send you part of the code of movei if you are interested
but I do not plan to make it public.

People told me that in order to do the code faster it is better to get rid
of structure of 4 chars and use one integer but I decided at this point not to
do it and there are a lot of options to improve it even without doing it.

I think that I will mention names of programmers who helped me in
the next public version of movei (you with the source code of tscp,
Hyatt with crafty's code and answering questions,Dieter
in answering question and other programmers that I do not remember
their name).

>
>You might as well move 32 bits (4 chars) around on a 32 bit computer. Moving 24
>bits around instead won't be any faster.
>
>You can look at the assembly to make sure all your chars are being moved as one
>word.

Thanks but unfortunately I never learned assembly.
Inspite of that Movei is very fast in calculating perft
so I guess that the compiler does a good job with my legal move generator.

Uri



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.