qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH 2/5] Support human unit formats in strtobyte


From: Avi Kivity
Subject: Re: [Qemu-devel] Re: [PATCH 2/5] Support human unit formats in strtobytes, eg. 1.0G
Date: Thu, 16 Sep 2010 12:46:53 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Lightning/1.0b3pre Thunderbird/3.1.3

 On 09/16/2010 12:42 PM, Jes Sorensen wrote:
On 09/16/10 12:40, Avi Kivity wrote:
>   On 09/15/2010 09:31 PM, Jes Sorensen wrote:
>>  Floating point is just plain wrong.
>
>  Why?  If command-line processing becomes too slow, you can always buy a
>  math co-processor.
>

Because it's imprecise anyway

52 bits = 4PB.  At that point some rounding will take place.

and requires dealing with fp regs.

The compiler takes care of allocating registers.

Besides, most users will probably hit their shell command line limit
before hitting the problem with the decimals.


20 digits will overflow your divider.

--
error compiling committee.c: too many arguments to function




reply via email to

[Prev in Thread] Current Thread [Next in Thread]