Re: [PATCHv2 1/3] lib: vsprintf: optimised put_dec_trunc() and put_dec_full()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michał Nazarewicz
Date: Tuesday, August 10, 2010 - 12:39 am

> On Sunday 08 August 2010 21:29, Michal Nazarewicz wrote:

On Tue, 10 Aug 2010 05:17:48 +0200, Denys Vlasenko <vda.linux@googlemail.com> wrote:

No.  81920 is a 17 bit number and when we multiply it by 0xcccd we lose
the most significant bit.  Therefore we cannot use the '(x * 0xcccd) >>
19' approximation for numbers which are higher then 65535.


-- 
Best regards,                                        _     _
| Humble Liege of Serenely Enlightened Majesty of  o' \,=./ `o
| Computer Science,  Michał "mina86" Nazarewicz       (o o)
+----[mina86*mina86.com]---[mina86*jabber.org]----ooO--(_)--Ooo--
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCHv2 1/3] lib: vsprintf: optimised put_dec_trunc() and ..., Michal Nazarewicz, (Sun Aug 8, 12:29 pm)
[PATCHv2 2/3] lib: vsprintf: optimised put_dec() for 32-bi ..., Michal Nazarewicz, (Sun Aug 8, 12:29 pm)
[PATCHv2 3/3] lib: vsprintf: added a put_dec() test and be ..., Michal Nazarewicz, (Sun Aug 8, 12:29 pm)
Re: [PATCHv2 1/3] lib: vsprintf: optimised put_dec_trunc() ..., Michał Nazarewicz, (Tue Aug 10, 12:39 am)
Re: [PATCHv2 2/3] lib: vsprintf: optimised put_dec() for 3 ..., Michał Nazarewicz, (Tue Aug 10, 12:42 am)
Re: [PATCHv2 1/3] lib: vsprintf: optimised put_dec_trunc() ..., Michal Nazarewicz, (Tue Aug 10, 3:42 pm)