Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Chess programming: C bit-field portability

Author: Toni

Date: 10:37:26 01/19/04

Go up one level in this thread


On January 19, 2004 at 01:00:14, Michael Henderson wrote:

>I have the following struct for a hash element in C language:
>
>struct hashElement {
>  U64 hashLock;
>  signed short int score;
>  signed depth: 10;
>  unsigned flag: 2;
>  move bestSavedMove;
>};
>
>My worry is, would this type of struct be portable, and have the inner workings
>of bitfield been standardized?

The only problem could be with the definition of U64

Regards



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.