Author: Robert Hyatt
Date: 19:11:53 12/05/03
Go up one level in this thread
On December 05, 2003 at 21:56:03, Russell Reagan wrote:
>On December 05, 2003 at 21:24:19, Robert Hyatt wrote:
>
>>I have a structure that looks like this:
>>
>>struct BOOK_POSITION {
>> long long signature;
>> unsigned int status;
>> float learn;
>> int CAP;
>>}
>
>Actually you don't need the __attribute ((packed)) on all lines. You just need
>it on the long long line.
>
>struct BOOK_POSITION
>{
> long long signature __attribute__ ((packed));
> unsigned int status;
> float learn;
> int CAP;
>};
That doesn't solve the problem, at least on the opteron. sizeof(struct) is
still 24, which is probably the right value after reading Eugene's response.
gcc/intelcc get 20..
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.