[PATCH 06/25] Add struct scratch_buffer and its internal helper functions

Paul Eggert eggert@cs.ucla.edu
Mon Mar 23 17:41:00 GMT 2015


Florian Weimer wrote:
> I would rather go with intmax_t because it's not
> clear to me if __alignof__ (max_align_t) increases to 64 if AVX-512 is
> enabled on x86_64.

That would be a bug in the C compiler, right?

Since C allows platforms where pointers and/or floating-point values have 
alignments stricter than intmax_t, I suggest using 'max (__alignof__ (intmax_t), 
__alignof__ (max_align_t))' along with a comment explaining why you don't trust 
max_align_t here.



More information about the Libc-alpha mailing list