|
From: | Bruno Haible |
Subject: | Re: new module 'aligned-malloc' |
Date: | Tue, 21 Jul 2020 15:00:42 +0200 |
User-agent: | KMail/5.1.3 (Linux/4.4.0-179-generic; KDE/5.18.0; x86_64; ; ) |
Jeffrey Walton wrote: > > And glibc aligns malloc() > > results to 8 bytes on most 32-bit platforms. > > I believe the runtime is required to return a pointer aligned for the > largest C type on the system. On x86 that's 16 bytes due to the xmm > datatypes. Right. The malloc() alignment on glibc/i386 was increased from 8 to 16 not too long ago: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=9b5c49ef97e63cc63f1ffa13baf771368105ebe2 https://sourceware.org/bugzilla/show_bug.cgi?id=21120 Bruno
[Prev in Thread] | Current Thread | [Next in Thread] |