This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients skrah, vstinner
Date 2017-10-31.18:14:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20171031181432.GA5095@bytereef.org>
In-reply-to <1509473235.53.0.213398074469.issue31912@psf.upfronthosting.co.za>
Content
> Do you mean the C++ std::max_align_t? Does C99 have something like that?
> 
> The Linux malloc() manual page says:
> 
> "The malloc() and calloc() functions return a pointer to  the  allocated memory,  which  is  suitably  aligned for any built-in type."

C11 has max_align_t, but also for C99 "any builtin type" means 16 byte alignment
for long double on x64, so malloc() and calloc() are required to align 16 bytes
with -std=c99 (and earlier).

max_align_t is just a shorthand to express the concept.
History
Date User Action Args
2017-10-31 18:14:43skrahsetrecipients: + skrah, vstinner
2017-10-31 18:14:43skrahlinkissue31912 messages
2017-10-31 18:14:43skrahcreate