[Issue 10826] New: Should the D GC allocate double4[] aligned to 32 bytes?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 15 11:33:50 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10826

           Summary: Should the D GC allocate double4[] aligned to 32
                    bytes?
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2013-08-15 11:33:49 PDT ---
Currently the D GC allocates arrays aligned to 16 bytes fit to be used in XMM
registers:

auto a1 = new double2[128];


But I think the D GC should also return this a2 aligned to 32 bytes, as needed
for efficiency for code that uses YMM registers, that are 256 bits long:

auto a2 = new double4[64];


Eventually the D GC should return this a3 aligned to 64 bytes for efficiency of
code that uses ZMM registers (Intel Xeon Phi), that are 512 bits long:

auto a3 = new double8[32];

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list