Complex.c

Tydr Schnubbis fake at address.dude
Sun Apr 30 15:28:26 PDT 2006


Craig Black wrote:
>> and each needs to be aligned appropriately, the Complex data structure is
> at
>> least 8 bytes long.
> 
> Oops, I mean 16 bytes.
> 
Well, (80*2)/8 is actually 20.

#include <stdio.h>

int main()
{
     printf("%d", sizeof(_Complex long double));
}

Compiled with dmc this prints 20, with gcc it prints 24.  Default 
options, on win32.  So there seems to be varying opinions as to what the 
best alignment/space compromise is.



More information about the Digitalmars-d mailing list