tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Expose max_align_t unconditionally



On Wed, Feb 26, 2020 at 02:00:08PM +0100, Michał Górny wrote:
> While we're already touching this, I wonder if we should extend it to
> cover alignment for AVX types.  In particular __m512i requires 512-bit
> alignment while our max_align_t currently has 128-bit alignment
> on amd64.

We do not guarantee such alignment for stack or allocator. As such, it
would be incorrect for max_align_t to have such alignment.

Joerg


Home | Main Index | Thread Index | Old Index