PATCH: Define MALLOC_ALIGNMENT as 16 for x32

Roland McGrath roland@hack.frob.com
Tue May 15 17:41:00 GMT 2012


> Will it change malloc alignment for i386?

No, since SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16) will be true for any
configuration that existed before 2.16.

> X32 MALLOC_ALIGNMENT == 16 is specified in x32 psABI. 

So is __alignof__ (long double) == 16.

> Malloc doesn't need to guess it.  

It's not a guess.  It's an algorithm.



More information about the Libc-alpha mailing list