Computer Chess Club Archives


Search

Terms

Messages

Subject: Chess programming: C bit-field portability

Author: Michael Henderson

Date: 22:00:14 01/18/04


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?



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.