[llvm-commits] [PATCH] lli memory manager does not ensure proper alignment
Tim Northover
t.p.northover at gmail.com
Fri Oct 12 07:52:10 PDT 2012
On Fri, Oct 12, 2012 at 3:04 PM, David Tweed <David.Tweed at arm.com> wrote:
> | But not good enough! Mwahahahaha! Size=15 and Align=16 still goes wrong, I think.
>
> In what way? The formula gives a 32-block (2 x 16), we can lose at most 15 for alignmnent to multiple of 16 so we've got 18 left. Or am I getting confused?
The original formula was "(Size + Alignment) / Alignment" which makes
NumElementsAligned = (15 + 16)/16 = 1 element or 16 bytes.
Tim.
More information about the llvm-commits
mailing list