Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20161217143036.GA18078@example.net>
Date: Sat, 17 Dec 2016 15:30:37 +0100
From: u-uy74@...ey.se
To: musl@...ts.openwall.com
Subject: Re: [PATCH v2] use lookup table for malloc bin index instead
 of float conversion

On Sat, Dec 17, 2016 at 03:03:24PM +0100, Szabolcs Nagy wrote:
> > > ... wouldn't it be better to drop the 4 unused
> > > entries from the table and add -4's to the indices?
>
> > Wouldn't this enlarge the code more than reduce the data?
> 
> most targets have a load instruction with small offset
> and on some targets the compiler emits relocation against
> (tab-4) instead of tab so the code size is not affected.

Oh indeed, I overlooked this link-time evaluation. Thanks.

Rune

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.