Complex.c
Craig Black
cblack at ara.com
Sun Apr 30 15:44:30 PDT 2006
"Tydr Schnubbis" <fake at address.dude> wrote in message
news:e33dmb$2u9m$1 at digitaldaemon.com...
> 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.
Oh well. I'm not that great with doing math in my head. Thankfully there
are calculators. :)
-Craig
More information about the Digitalmars-d
mailing list