Is there a neat way to do this in D?As far as I can tell the GC_allocator doesn't do aligned allocations by default.
Alligned gc allocation of struct
Sjoerd Nijboer via Digitalmars-d-learn Fri, 05 Oct 2018 02:40:36 -0700
I've got a `struct Foo{ubyte16 field1, field2.... fieldn;}` for
which I would like a heap allocation `Foo* foo = new Foo();` But
the fields itsself must be 16 bytes aligned for SIMD instructions.
- Alligned gc allocation of struct Sjoerd Nijboer via Digitalmars-d-learn
- Re: Alligned gc allocation o... Kagamin via Digitalmars-d-learn
- Re: Alligned gc allocati... Sjoerd Nijboer via Digitalmars-d-learn
- Re: Alligned gc allocati... Dennis via Digitalmars-d-learn
- Re: Alligned gc allo... Sjoerd Nijboer via Digitalmars-d-learn
- Re: Alligned gc ... Stanislav Blinov via Digitalmars-d-learn