[Issue 231] long is 4-byte aligned in unittest with 4 character module name

kris foo at bar.com
Sun Jul 9 02:18:55 PDT 2006


d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=231
> 
> 
> bugzilla at digitalmars.com changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|NEW                         |RESOLVED
>          Resolution|                            |INVALID
> 
> 
> 
> 
> ------- Comment #4 from bugzilla at digitalmars.com  2006-07-08 16:39 -------
> Not a bug, since longs only need to be aligned on 4 byte boundaries on a 32 bit
> machine.
> 
> 

It's apparently well known that doubles need to be 64-bit aligned on x86 
devices. Otherwise, the performance is known to drop by a factor of two 
or more. I suspect you'd agree that's quite significant?

Does D align double on 32bit or 64bit? How about double[] ?



More information about the Digitalmars-d-bugs mailing list