July 23, 2017 Is align(16) respected for globals? | ||||
---|---|---|---|---|
| ||||
I rely a lot on such constants for SSE: align(16) static immutable short[8] A = [ 1, 1, 1, 1, 3, 3, 3, 3 ]; Does such alignment actually work on all OS, at all times? Word on the street says align() doesn't work with globals. |
July 23, 2017 Re: Is align(16) respected for globals? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Guillaume Piolat | On Sunday, 23 July 2017 at 08:43:33 UTC, Guillaume Piolat wrote:
> I rely a lot on such constants for SSE:
>
> align(16) static immutable short[8] A = [ 1, 1, 1, 1, 3, 3, 3, 3 ];
>
> Does such alignment actually work on all OS, at all times?
> Word on the street says align() doesn't work with globals.
Should work with LDC (part of our testsuite).
|
Copyright © 1999-2021 by the D Language Foundation