Is align(16) respected for globals?

Guillaume Piolat via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 23 01:43:33 PDT 2017


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.


More information about the Digitalmars-d-learn mailing list