Messages in this thread | | | From | Michal Nazarewicz <> | Subject | Re: [PATCH 2/4] lib: vsprintf: Optimize division by 10000 | Date | Sun, 23 Sep 2012 19:30:20 +0200 |
| |
On Fri, Aug 03 2012, George Spelvin wrote: > The same multiply-by-inverse technique can be used to > convert division by 10000 to a 32x32->64-bit multiply. > > Signed-off-by: George Spelvin <linux@horizon.com>
You are using a 64-bit multiply in a path that is designed for 32-bit processors, which makes me feel that it will be slower.
-- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Michał “mina86” Nazarewicz (o o) ooo +----<email/xmpp: mpn@google.com>--------------ooO--(_)--Ooo--[unhandled content-type:application/pgp-signature] | |